ALX
Well-known member
In one form in my program, I have a handfull of controls, but I use a sub routine to paint the rest of the form. The sub that handles the paint event begins...
I would like to call this routine from other subs within this form class, but I would need to match the arguments signature. I can handle the "sender" part, but I don't know how to come up with the "PaintEventsArgs" portion. Is there a way to get a reference to the graphics object that .NET passes to this sub or do I need to create a new graphics object and pass that as the PaintEventArgs ???
VB.NET:
Private Sub Form1_Paint(ByVal sender As Object, ByVal pe As PaintEventArgs) Handles MyBase.Paint