Article ID: 223351 - View products that this article applies to.
This article was previously published under Q223351
When making a call to TabPage.setSelectedTab() from within an OnSelectedIndexChanged event handler of the parent TabControl, the focus will first go to the user-selected index before returning to the index value set in the setSelectedTab() call. In addition, when returning to the index set in code by the setSelectedTab() call, the children components of the set TabPage will not be visible and Control.setVisible(true) must be used, causing a noticeable flicker.
To work around this problem, call Control.setVisible(true) on the TabPage after the setSelectedTab() call is made.
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/194022/EN-US/ )INFO: Visual Studio 6.0 Service Packs, What, Where, Why
(http://support.microsoft.com/kb/194295/EN-US/ )HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed
Steps to Reproduce Behavior
For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:
Article ID: 223351 - Last Review: June 14, 2006 - Revision: 4.0
Contact us for more help