By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,644 Members | 1,866 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,644 IT Pros & Developers. It's quick & easy.

Event Handling in VB.Net + Object Late Binding

P: n/a
I Created Object A in the Object B. then I called a object A function
from object B...
Like..

Public Class A

Public Event beforeSample()

Public Sub function_Sample()

RaiseEvent beforeSample()

''''''
''''''
''''''
End Function

End Class

Public Class B

Private WithEvents obj as new A

Private Function Main() as Boolean
''''''
'''''
'''''
'''''
Obj. function_Sample()
'''''
'''''
'''''
'''''
End function
Private Sub obj_beforeSample() handle Obj.beforeSample

End Sub

End Class

So here I handle the event beforeSample in the Object B....!

The Problem is... How do I handle the events, if I create the object in
late bind method means...

Public Class B

Private obj as Object

Private Function Main() as Boolean

''''''
''''''
''''''
obj = new A 'late bind method

''''''
''''''
''''''
Obj. function_Sample()

End Function

End Class

Then How to handle the events of Object A ??

Jul 27 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.