Custom tab control focus rectangle

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

I am creating my own tab control in vb.net. I am inheriting
System.Windows.Forms.TabControl. I want to provide a property that
disables or enables the focus rectangle being drawn on the tabs.
Setting the DrawMode to OwnerFixed and adding the drawing methods in
overrides OnDrawItem doesn't seem to do it. The focus rectangle is
drawn no matter what is drawn in the OnDrawItem event. How can I
prevent the focus rectangle from being drawn?

Jason
 
I dont know but I sure would love to see your finished product. The one with
VS2003 kind of sucks.
 
Back
Top