Click to See Complete Forum and Search --> : Painting on Form


signup2010
July 26th, 2008, 02:30 PM
Help. Could someone tell how how to manually call the paint method on the form (ie. when a key is pressed). I don't want windows to tell me when to update the screen. I want the re-painting done now...!

Thanks.

gstercken
July 27th, 2008, 11:11 AM
Help. Could someone tell how how to manually call the paint method on the form (ie. when a key is pressed). I don't want windows to tell me when to update the screen. I want the re-painting done now...!That's what the Invalidate() method is for... You call it, and your form will be repainted.

signup2010
July 28th, 2008, 01:38 AM
Invalidate()... Hmm...

Anyways, this.refresh();

did the trick!

On a side note, I started learning how to program in C# after my QBASIC (circa 1980's) program wouldn't work on Windows Vista (DRP won't allow fullscreen). C# is like 100X prettier than QBASIC to generate graphics... ;)


J.D.M. (President and C.E.O. of http://pick-upkommunity.blogspot.com )