Results 1 to 2 of 2

Thread: Search for a LINE in a LIST

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Location
    Amsterdam
    Posts
    1

    Search for a LINE in a LIST

    I makeing a sort of tool for Msn Messenger to block specefied Email-adresses in a list box.

    Somebody know how to make this?

    Something that looks lik this (i tell you this is wrong)
    If pSourceUser.EmailAddress = List1.ListCount Then
    pSourceUser.SendText bstrMsgHeader, "You been blocked", MMSGTYPE_ALL_RESULTS
    End If
    Thanks (sorry for my bad English)
    - Mike

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    maybe you can use something like this:

    VB Code:
    1. Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Integer, ByVal wParam As Integer, lParam As Any) As Long
    2. Private Const LB_FINDSTRING = &H18F
    3.  
    4. If SendMessage(List1.hWnd, LB_FINDSTRING, -1, ByVal Text1.Text) <> -1 Then pSourceUser.SendText bstrMsgHeader, "You been blocked", MMSGTYPE_ALL_RESULTS
    -= a peet post =-

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