Hi, I'm developing a custom tabControl and could not intercept the
onPaint/onPaintBackground events in the inherited class. Is there anything
I'm missing here?
Here's the code:
Public Class myTabCtl
Inherits System.Windows.Forms.TabControl
Protected Overrides Sub OnPaint(ByVal e As
System.Windows.Forms.PaintEventArgs)
MyBase.OnPaint(e)
Dim a As String = "a"
End Sub
End Class
And the instance is declared in the form's class as: Friend WithEvents
myTabControl as New myTabCtl
I just put a breakpoint in the line that declares the string and, in
runtime, never got there.
Thanks a lot,
Regards
Victor Reboucas
Mick Doherty - 25 Sep 2005 22:41 GMT
See the tabcontrol tips on my site:
http://www.dotnetrix.co.uk/tabcontrols.html

Signature
Mick Doherty
http://dotnetrix.co.uk/nothing.html
> Hi, I'm developing a custom tabControl and could not intercept the
> onPaint/onPaintBackground events in the inherited class. Is there anything
[quoted text clipped - 23 lines]
> Regards
> Victor Reboucas