Results 1 to 10 of 10

Thread: C# as VB.NET in dotMSN? [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575

    C# as VB.NET in dotMSN? [RESOLVED]

    Hi,

    I am trying out dotMSN and its great, and I am going from the sample.

    Unfortunately, the sample is in C# and I don't know C#

    I have managed to make my VB.NET app successfully connect to MSN Messenger but I can't to much more than that...

    Here is a section I want to concentrate on:
    Code:
    private void ConversationCreated(Messenger sender, ConversationEventArgs e)
    		{
    e.Conversation.ContactJoin += new Conversation.ContactJoinHandler(ContactJoined);
    }
    and the line here:
    Code:
    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:
    1. 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.

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