Home All Groups Group Topic Archive Search About

how to raise predefined events

Author
29 Aug 2006 6:12 AM
raju
Hai,

    In my device application, i am drawing some icons using drawicon
method in paint event.
In some situation, i need to call the same paint event explicitly. Is
it possible to call the paint event from form's click event.

     Thanks in advance.

Regards,
Raju.

Author
29 Aug 2006 6:27 AM
Cor Ligthert [MVP]
Raju,

With the change to get a message from Herfried,

TheEvenMethod(nothing,nothing) 'or any thing you need in the sender and/or
the eventarguments

I hope this helps,

Cor

Show quoteHide quote
"raju" <ponnur***@gmail.com> schreef in bericht
news:1156831937.851015.322520@i3g2000cwc.googlegroups.com...
> Hai,
>
>    In my device application, i am drawing some icons using drawicon
> method in paint event.
> In some situation, i need to call the same paint event explicitly. Is
> it possible to call the paint event from form's click event.
>
>     Thanks in advance.
>
> Regards,
> Raju.
>
Author
29 Aug 2006 12:14 PM
Herfried K. Wagner [MVP]
"raju" <ponnur***@gmail.com> schrieb:
> In my device application, i am drawing some icons using drawicon
> method in paint event.
> In some situation, i need to call the same paint event explicitly. Is
> it possible to call the paint event from form's click event.

Call the form's 'Invalidate', 'Refresh', or 'Update' method.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>