1
如何以編程方式設置Windows Live Messenger(當前使用8.5.1302.1018)顯示圖片。可能的解決方案可以是C++,.NET或VB。即使只是一個提示可能是有用的。以編程方式設置Windows Live Messenger顯示圖片
如何以編程方式設置Windows Live Messenger(當前使用8.5.1302.1018)顯示圖片。可能的解決方案可以是C++,.NET或VB。即使只是一個提示可能是有用的。以編程方式設置Windows Live Messenger顯示圖片
有一個名爲MSNP-Sharp的開源項目,你應該看看。
您可以使用它連接到MSN並設置您的個人資料圖片。以下是設置圖像的示例:
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.");
}