You are here: MessengerYouLike.IMSDK > IMSDK Reference > IMSDK Namespace > Classes > IMClient Class > IMClient Events > IMClient.OnFriendStatusChanged Event
MessengerYouLike
IMClient.OnFriendStatusChanged Event

when IMSDK.IMClient.Status of the Friend is changed

C#
public event OnFriendStatusChanged;
Visual Basic
Public Event OnFriendStatusChanged(ByVal FriendUsername As String, ByVal FriendStatus As IMClient.Status)
Return Values 
Description 
ByVal FriendUsername As String 
Username of the friend whose status is changed 
ByVal FriendStatus As IMClient.Status 
Updated Status of the friend 

When a Contacts calls a sub IMSDK.IMClient.BeginSetUserStatus then all Online Friends will be notified of that new status via this event

 [Visual Basic]
 Private Sub MC_OnFriendStatusChanged(ByVal FriendUsername As String, ByVal FriendStatus As IMSDK.IMClient.Status) Handles MC.OnFriendStatusChanged
       Debug.WriteLine(FriendUsername & " Status is now " & FriendStatus)
    End Sub
Copyright (c) 2007. All rights reserved.