Windows Develop Bookmark and Share   
 index > Windows Forms General > Tab control not hilighting selected tab in yellow
 

Tab control not hilighting selected tab in yellow

At design time, in VB, my certain form with TabControl looks and behaves fine.  However, at run-time, the yellow hilights that show you which tab you clicked on don't appear.  They also don't appear on mouseover.  What gives?  I verified that the hilights do appear if I look at Control Panel -> System.
Kevin8264  Friday, January 26, 2007 9:13 PM
I've got an orange stripe on the tab with VisualStyles enabled both in my program and in Windows. Is that what you're talking about?
nobugz  Friday, January 26, 2007 9:37 PM

System.Windows.Forms.Application.EnableVisualStyles()

Duh I should have done more digging

Kevin8264  Friday, January 26, 2007 10:15 PM
I've got an orange stripe on the tab with VisualStyles enabled both in my program and in Windows. Is that what you're talking about?
nobugz  Friday, January 26, 2007 9:37 PM

yes, my bad, it's orange.

i got an inkling this has to do with "Enable XP visual styles"...

The way my program is structured, a C# subroutine calls a VB DLL which blah blah starts a new thread which starts the form where my tab control is. What's missing?

Kevin8264  Friday, January 26, 2007 10:06 PM

System.Windows.Forms.Application.EnableVisualStyles()

Duh I should have done more digging

Kevin8264  Friday, January 26, 2007 10:15 PM

You can use google to search for other answers

Custom Search

More Threads

• Hiearchical windows forms datagrid control
• Form inside a DLL not accepting keyboard input
• [GDI+] Bitmap scaling - NearestNeighbor interpolation bug?
• Getting the values entered in dynamically created textbox controls
• Use a textbox to fill repeater
• Close a form when opening another
• picturebox help...
• Syncing data between database and desktop app
• Databinding to n:n Table
• ASP.NET Community Starter Kit Menu control - winform comparison