Results 1 to 11 of 11

Remove selected item from listbox

Threaded View

  1. #1
    Forum Contributor
    Join Date
    04-27-2006
    Location
    Cayman Islands
    Posts
    379

    Remove selected item from listbox

    Sorry, should be a simple one...

    I can add an item from one list box to another using the following...

    Private Sub ListBox1_Click()
        ListBox2.AddItem ListBox1.Value
    End Sub
    But I want to be able to remove the item from the listbox by clicking it. Tried this but doesn't work!

    Private Sub ListBox2_Click()
         ListBox2.RemoveItem ListBox2.ListIndex
    End Sub
    Last edited by ChrisMattock; 12-04-2008 at 03:14 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1