|
MessengerYouLike
|
|
This Event Fires when IMSDK.IMClient.UpdateDisplayPicture completes
public event OnDisplayPictureUpdated;
Public Event OnDisplayPictureUpdated(ByVal ImagePath As String)
|
Return Values |
Description |
|
ByVal ImagePath As String |
Local Path of the Display Picture |
When The Logged in users Display Pictures is updated by calling the sub IMSDK.IMClient.UpdateDisplayPicture then this event is fired after this event all online Friends of this user gets the updated display Picture
[Visual Basic] 'Create a new IMClient Dim MC as new IMSDK.IMClient 'Call the Listen Sub MC.Listen() 'Now Try to login MC.BeginLogin(TxtUsername.Text,TxtPassword.Text) 'if username and password is valid then Private Sub MC_OnLoggedin(ByVal UserObject As IMSDK.User) Handles MC.OnLoggedin Debug.WriteLine("Username logged in : " & MCUser.Username & " , " & MCUser.Password) End Sub 'if username or password is invalid then Private Sub MC_OnUsernameOrPasswordInvalid(ByVal Username As String, ByVal Password As String) Handles MC.OnUsernameOrPasswordInvalid Debug.WriteLine("Username password invalid : " & Username & " , " & Password) End Sub 'Change Display picture MC.UpdateDisplayPicture(FileDlg.FileName, PB.Width, PB.Height) 'When Completes Event is fired Private Sub MC_OnDisplayPictureUpdated(ByVal ImagePath As String) Handles MC.OnDisplayPictureUpdated Debug.WriteLine("On Display Picture Updated :" & ImagePath) End Sub