FIX: setSelectedTab() In TabControl Does Not Properly Paint Children (223351)
The information in this article applies to:
- Microsoft Visual J++ 6.0
- Microsoft SDK for Java 3.1
This article was previously published under Q223351 SYMPTOMS
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.
RESOLUTION
To work around this problem, call Control.setVisible(true) on the TabPage after the setSelectedTab() call is made.
STATUSMicrosoft 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: 194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed
REFERENCES
For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:
Modification Type: | Major | Last Reviewed: | 6/14/2006 |
---|
Keywords: | kbBug kbCmnCtrls kbfix kbVS600sp3fix kbWFC KB223351 |
---|
|