how to raise predefined events

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • raju

    #1

    how to raise predefined events

    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.

  • Cor Ligthert [MVP]

    #2
    Re: how to raise predefined events

    Raju,

    With the change to get a message from Herfried,

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

    I hope this helps,

    Cor

    "raju" <ponnurajs@gmai l.comschreef in bericht
    news:1156831937 .851015.322520@ i3g2000cwc.goog legroups.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.
    >

    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: how to raise predefined events

      "raju" <ponnurajs@gmai l.comschrieb:
      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/>

      Comment

      Working...