Re: Trying to add "Add Contact" feature on my asp/vb .net forum

  •  02-20-2010, 7:38 PM

    Re: Trying to add "Add Contact" feature on my asp/vb .net forum

    Hi vince11111,
     
    Below is an example to show you  how to add user "terry" into friend list of ken.
    1. Dim portal As CuteChat.ChatPortal = CuteChat.ChatSystem.Instance.GetCurrentPortal()    
    2. SyncLock portal    
    3.     Dim myid As CuteChat.ChatIdentity = New CuteChat.AppChatIdentity("nickname"False"User:ken""0.0.0.0")    
    4.     portal.DataManager.AddContact(myid, "User:terry")    
    5. End SyncLock   

    Regards,
     
    Ken
View Complete Thread