The text on a TabControl control may not be displayed in the .NET Framework 1.1 (905721)
The information in this article applies to:
- Microsoft .NET Framework 1.1
SYMPTOMSIn the Microsoft .NET Framework 1.1, the text on a TabControl control may not be displayed when the following conditions are
true:
- You use a Windows Forms application.
- You use a TabControl control in the application.
- You try to align the TabControl control on the left or on the right.
- You enable visual styles for the application by using the EnableVisualStyles method.
CAUSEThis behavior occurs because of a limitation of the TabControl control in Microsoft Common Control 6.0. WORKAROUNDTo work around this behavior, use one of the following methods. Method 1Disable visual styles for the application by removing the call to the EnableVisualStyles method. Method 2Set the DrawMode property of the TabControl control to the OwnerDrawFixed value. Additionally, add custom code to draw the tabs.
For more information, visit the following Microsoft Developer Network (MSDN) Web site: REFERENCESFor more information, visit the following MSDN Web
site:
Modification Type: | Major | Last Reviewed: | 9/22/2005 |
---|
Keywords: | kbinfo kbprb KB905721 kbAudITPRO kbAudDeveloper |
---|
|