Sending message?

46 views
Skip to first unread message

Maciej Skrzetuski

unread,
Jul 27, 2012, 12:33:28 PM7/27/12
to msnp...@googlegroups.com
Hello all,

I just wanted to connect, send message and disconnect. This seems to be very complicated. See my code under http://pastebin.com/x2M53fBq. I was just trying the following.

Contact contact = messenger.ContactList.GetContact("ggggggg");
contact.SendMessage(new TextMessage("Hello from C#!"));

This is obviously not how it's done. The attached "Example Client" seems to be very complex. What is the correct procedure for this? Any simple tutorials?

Kind regards
Maciej

Pang WU

unread,
Jul 30, 2012, 6:10:57 PM7/30/12
to msnp...@googlegroups.com
  1. //Contact contact = messenger.ContactList.GetContact("ggggggg");
  2.                 //contact.SendMessage(new TextMessage("Hello from C#!"));
Put this code in ContactService_SynchronizationCompleted, you can only send message after the SynchronizationCompleted event triggered.
Reply all
Reply to author
Forward
0 new messages