Windows live messenger display picture?

Programmatically set Windows Live Messenger Display Picture

  • How can I programmatically set Windows Live Messenger (currently using 8.5.1302.1018) display picture. Possible solutions can be in C++, .NET or VB. Even just a hint could be useful.

  • Answer:

    There is an open source project called http://code.google.com/p/msnp-sharp/ that you should look at. You can use this to connect to MSN and set your profile picture. Here's an example of setting the image: try { Image fileImage = Image.FromFile(ConfigurationSettings.AppSettings["ImageFileName"]); DisplayImage displayImage = new DisplayImage(); displayImage.Image = fileImage; m_Messenger.Owner.DisplayImage = displayImage; m_Messenger.Nameserver.StorageService.UpdateProfile(fileImage, "MyPhoto"); } catch { LogError(new StackTrace(true), "Error adding avatar image."); }

smink at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

The first resource to look at would be the MSN API: http://dev.live.com/messenger/ I think you will find the answer there.

Filip Ekberg

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.