TabControl drawing issues

G

Guest

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
 
H

h4xPace

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

Have you tried invalidating the forms detail area during the
TabControl.TabIndexChanged event?

Private Sub TabControl1_TabIndexChanged(ByVal sender As Object, ByVal
e As System.EventArgs) Handles TabControl1.TabIndexChanged
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top