TabControl drawing issues

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?aXdkdTE1?=

    #1

    TabControl drawing issues

    hi, im trying to get my form (that has a tabcontrol and 4 tabs on it) to be a
    solid color, aka you cant see the color Control that the TabControl has. The
    issue im having is, that the control color is bleeding through. I have set
    the forms backcolor to another color. all tabs are a different color, and i
    have OwnerDrawn set to true....yet i cant get the form to be a solid, smooth
    color. any help would be appreciated
    --
    -iwdu15
  • h4xPace

    #2
    Re: TabControl drawing issues

    On Apr 12, 6:16 pm, iwdu15 <jmmgoalsteraty ahoodotcomwrote :
    hi, im trying to get my form (that has a tabcontrol and 4 tabs on it) to be a
    solid color, aka you cant see the color Control that the TabControl has. The
    issue im having is, that the control color is bleeding through. I have set
    the forms backcolor to another color. all tabs are a different color, and i
    have OwnerDrawn set to true....yet i cant get the form to be a solid, smooth
    color. any help would be appreciated
    --
    -iwdu15
    Have you tried invalidating the forms detail area during the
    TabControl.TabI ndexChanged event?

    Private Sub TabControl1_Tab IndexChanged(By Val sender As Object, ByVal
    e As System.EventArg s) Handles TabControl1.Tab IndexChanged
    Me.Invalidate() 'Forces repaint
    End Sub

    That may not be the best way, especially if you have a lot of controls
    on the form (it may look like a flicker between TabPages). The
    TabControl has got to be the most bug ridden control in the set.

    Comment

    • Mick Doherty

      #3
      Re: TabControl drawing issues

      Have a look at the tips on my site, specifically 'A Completely OwnerDraw
      TabControl.'...


      or use my Free TabControlEx instead of the standard TabControl...
      Download custom Windows Forms controls and components for .NET applications. TabControlEx, MenuSkinner, and more.


      --
      Mick Doherty
      Dotnetrix offers Nothing. Standard and Premium versions available.



      "iwdu15" <jmmgoalsteraty ahoodotcomwrote in message
      news:54A37E86-EFDB-4406-9C39-2CC2F2DBD918@mi crosoft.com...
      hi, im trying to get my form (that has a tabcontrol and 4 tabs on it) to
      be a
      solid color, aka you cant see the color Control that the TabControl has.
      The
      issue im having is, that the control color is bleeding through. I have set
      the forms backcolor to another color. all tabs are a different color, and
      i
      have OwnerDrawn set to true....yet i cant get the form to be a solid,
      smooth
      color. any help would be appreciated
      --
      -iwdu15

      Comment

      Working...