How to Change the Display Picture
[Visual Basic]
Private Sub llbChangeDisPic_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles llbChangeDisPic.LinkClicked
If OfdDisPic.ShowDialog = Windows.Forms.DialogResult.OK Then
IMC.UpdateDisplayPicture(OfdDisPic.FileName, 66, 63)
End If
End Sub
[Visual Basic]
Private Sub IMC_OnDisplayPictureUpdated(ByVal ImagePath As String) Handles IMC.OnDisplayPictureUpdated
'Get The Loggedin user Display picture if any
If Not String.IsNullOrEmpty(IMC.GetDisplayPicture) Then
picUserDisPic.ImageLocation = IMC.GetDisplayPicture
End If
End Sub
[Visual Basic]
Private Sub IMC_OnFriendDisplayPictureUpdated(ByVal FriendUsername As String, ByVal DisplayPicturePath As String) Handles IMC.OnFriendDisplayPictureUpdated
Debug.WriteLine("Friend :" & FriendUsername & " Display picture Updated")
End Sub