[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:
Module ModuleSend
Public Delegate Sub CallKey()
Public SendCallBack As CallKey = Nothing
Public Sub Invoke()
Try
If Not SendCallBack Is Nothing Then
SendCallBack.Invoke()
End If
Catch
End Try
End Sub
End Module
Now I want to be able use this in the main project
vb.net Code:
ModuleSend.SendKeyCallBack = AddressOf Main.Do
But even though SendKeyCallBack is declared in the module it says it is not declared. any ideas?