repaint()

zeeshannabeel

New member
Joined
Apr 16, 2010
Messages
2
Programming Experience
1-3
I am developing a program in vb.net in which i need a graphics function like repaint() in java. I just want to know how can i repaint everything in form by calling just a single function as repaint() in java.

BR,
Zeeshan
 
VB.NET:
Me.Invalidate
 
If you want to force a control to repaint itself then you call its Refresh method, which is equivalent to calling Invalidate and Update. If you only want to repaint part of the control, you call Invalidate and specify the area that needs repainting, then call Update. If you don't call Update then the repaint won't happen until the next time the control repaints naturally, which may be immediately and may not.
 

Latest posts

Back
Top