Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / September 2005

Tip: Looking for answers? Try searching our database.

cannot intercept onPaint/onPaintBG from inherited TabControl

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
VR - 25 Sep 2005 17:31 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.