e.Conversation.ContactJoin += new Conversation.ContactJoinHandler(ContactJoined);
And i have no idea how I write that in VB.NET
First of all, I don't know what its trying to do. the += thing baffles me... and second, VB.NET won't even let me write e.Conversation.ContactJoin because ContactJoin is an event. So I am completely confused...
And by the above bit, should I be writing it like this in vb?
VB Code:
Private Sub ConversationCreated(ByVal Sender As Messenger, ByVal e As ConversationEventArgs)
Thanks very much for the help! Sorry for including C# but I needed to post it in this forum, so please help me with this! I am so confused!
Last edited by LITHIA; May 24th, 2004 at 10:37 AM.
Private Sub ConversationCreated(ByVal Sender As Messenger, ByVal e As ConversationEventArgs)
There other one is wirring the event with the event handler . In C# + means , add and - means remove . So in VB.NET , it should be something like this :
that doesn't work... when I write AddHandler i get a list of the objects available on my form.
Conversation.ContactJoin aint an object, shown in the screenshot.
And i can never seem to get ContactJoin to appear as it keeps saying its an event (its got the yellow lightning bolt next to it) but AddHandler did look right... because it said Object as Event, even though i dont think it's an object, or at least not an object i can get at.
Thanks for the help pirate, you couldn't - just a tad - explain this delegate thing for me could ya preeeetty please?