Skip to content

TabControl missing text on TabPages aligned on left

Scott

Asked Dec 21, 2007, 7:33 AM EST3 answers
Share
LinkedInX
I have a TabControl on my Windows form with only (and always) two TabPages. The problem is when I align the tabs on the left or right, the TabPage text does not show up. If I align them on the top or bottom, it is fine. I really want the tabs on the left. Can someone help?

Another thing: This was working perfectly on on my Windows Vista machine, but now I'm using a Windows XP Pro machine. Both are using Visual Studio 2008 Beta 2 and .NET Framework 3.5.

3 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Check your TabControl's styling. If I remember correctly you should have options such as System, Professional, and a few others. Try a few different ones and see which ones will work. I know on some of my applications, I have to set the style of my menu strips to System, otherwise they show up as just flat black on Windows 2000 OS's but work fine with XP Prof and Home. Its just weird like that sometimes.
    0
  • 0
    Thanks, but I can't find any styles for the TabControl. Are they somehow hidden from me? Any other thoughts?
    0
  • 0
    They should be in the property panel for the TabControl. I cant remember for the life of me what the exact name is. But its how you change the style of the tabs and control itself. Some styles wont work on certain versions of Windows. That was my experience with the ToolStrip control.
    0