Results 1 to 3 of 3

Thread: MSN messenger...marquee?

  1. #1
    chenko
    Guest
    add the msn messenger reference and change the "friendlyname" .... thats all

  2. #2
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    when i do
    VB Code:
    1. Dim iMSN As New MsgrObject
    2. iMSN.LocalFriendlyName = "Nishant"
    it says that LocalFriendlyName is read only and cant be changed...which makes like no sense...
    You just proved that sig advertisements work.

  3. #3
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    Hi Nishantp,
    Put this in a class module
    VB Code:
    1. Option Explicit
    2. Dim msnObj As New MsgrObject
    3.  
    4.  
    5. Public Property Let FriendlyName(ByVal Value As String)
    6. msnObj.Services.PrimaryService.FriendlyName = Value
    7. End Property

    put the following in a form

    VB Code:
    1. Option Explicit
    2. dim i as Integer
    3. Private Sub Command1_Click()
    4. Dim myMsn As New Class1
    5.  
    6. myMsn.FriendlyName = "Hello there!!"
    7.  
    8. End Sub

    Want a marquee !! put a textbox and an timer on the form
    VB Code:
    1. Private Sub Timer1_Timer()
    2. Msg = " This might look cool to you, but its damn annoying to everyone :-D, specially to the one you are chatting !!!"
    3. Text1.Text = Mid(Msg, i, Len(Msg))
    4.  
    5. If i > Len(Msg) Then
    6.     i = 1
    7. Else
    8.     i = i + 1
    9. End If
    10.  
    11. If Text1.Text = "" Then Exit Sub
    12. Msn.FriendlyName = Text1.Text
    13. End Sub
    Have fun
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width