OnPaint
-
hellow to all .. can i load OnPaint More than one time at the same forum ? let say i wanna load OnPaint when i click on a button ? i am trying to do so , but i recive an error .. help please .. thxxx
-
hellow to all .. can i load OnPaint More than one time at the same forum ? let say i wanna load OnPaint when i click on a button ? i am trying to do so , but i recive an error .. help please .. thxxx
-
What do you mean by "load OnPaint"? What is the code that you used, and what error message do you get?
--- b { font-weight: normal; }
i do not get error message .. but what i wanna do is to be able to call OnPaint , can i call it let say from a button click when i click on the button ?
-
hellow to all .. can i load OnPaint More than one time at the same forum ? let say i wanna load OnPaint when i click on a button ? i am trying to do so , but i recive an error .. help please .. thxxx
-
me.invalidate will repaint the entire control.
Regards, 1tg46 Check out 3D Game Development with Dark Basic Professional [^]programming.
-
i do not get error message .. but what i wanna do is to be able to call OnPaint , can i call it let say from a button click when i click on the button ?
microuser_2000 wrote:
i do not get error message ..
What did you mean by "but i recive an error", then?
but what i wanna do is to be able to call OnPaint , can i call it let say from a button click when i click on the button ?
You could, but that is not the proper way of redrawing a control. Call the Invalidate method of the control, that will put a message in the queue that tells the message pump that the Paint event has to be called to redraw the control.
--- b { font-weight: normal; }