Custom tab control focus rectangle

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
 
S

scorpion53061

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

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