Saturday, January 16, 2010

How to refresh the controls on a vb.net form on the go?

I have a paint function which will dynamically pain ts the controls' surface.These sometime does not trigger.I don't know what's the exact problem is?


Can anybody help?????????How to refresh the controls on a vb.net form on the go?
Whichever method you use, if it doesn't trigger, it won;t work. You'll have to make sure that it triggers when you want it to. (The exact problem - as far as we can tell from here - is that wherever you're putting the trigger, it's not being executed every time you want it to be - IOW, it's in the wrong place.)How to refresh the controls on a vb.net form on the go?
Try control.refresh().





Make sure you are not creating an endless loop with the OnPaint event.





Maybe this will help:


http://visualbasic.about.com/od/usingvbnet/a/GDIP03.htm

No comments:

Post a Comment