Results 1 to 5 of 5

Thread: [RESOLVED] Using Callbacks

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2013
    Posts
    177

    Resolved [RESOLVED] Using Callbacks

    Hi,

    I hope no one minds, but I figured I would create a new thread since my topic and question changed in my previous one.

    I am not working with Callbacks and still very unsure of how they work.

    I looked over the Sample here ---> http://msdn.microsoft.com/en-us/libr...=vs.71%29.aspx but it does not all make sense.

    I have a module in my 2nd project like so.

    vb.net Code:
    1. Module ModuleSend
    2.  
    3.     Public Delegate Sub CallKey()
    4.  
    5.     Public SendCallBack As CallKey = Nothing
    6.  
    7.  
    8.     Public Sub Invoke()
    9.         Try
    10.             If Not SendCallBack Is Nothing Then
    11.                 SendCallBack.Invoke()
    12.             End If
    13.         Catch
    14.         End Try
    15.  
    16.     End Sub
    17.  
    18. End Module

    Now I want to be able use this in the main project

    vb.net Code:
    1. ModuleSend.SendKeyCallBack = AddressOf Main.Do

    But even though SendKeyCallBack is declared in the module it says it is not declared. any ideas?
    Last edited by Crzyrio; Jun 5th, 2013 at 02:15 PM.

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