CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Firing an event

  1. #1
    Join Date
    Mar 2001
    Posts
    39

    Firing an event

    How can i fire an event from another event handling function.

    eg: i want to invoke the command1_click() from winsock1_dataarrival()

    can you help me??


    Thank you


  2. #2
    Join Date
    Mar 2001
    Location
    Australia
    Posts
    146

    Re: Firing an event

    In the winsock1_dataarrival() event just call the event the same way you would any other method.

    eg.

    Private Sub WinSock1_DataArrival()
    Call Command1_Click
    End Sub

    Hope this helps,

    Nathan.


  3. #3
    Join Date
    Mar 2001
    Posts
    39

    Re: Firing an event

    Thank you for explaining my doubt


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured