Results 1 to 3 of 3

Thread: remove, check list

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216

    remove, check list

    How can i check a listbox for an item through a command in a txtbox? Also how can i remove the item from the listbox?

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    VB Code:
    1. If (ListBox1.Items.Contains(TextBox3.Text)) Then
    2.             ListBox1.Items.Remove(TextBox3.Text)
    3.         Else
    4.             MessageBox.Show(TextBox3.Text & " is not in the ListBox")
    5. End If
    Dont gain the world and lose your soul

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216
    Ok thanks

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