Results 1 to 11 of 11

Remove selected item from listbox

Threaded View

ChrisMattock Remove selected item from... 12-04-2008, 01:56 PM
Ikaabod I would recommend you use the... 12-04-2008, 03:07 PM
ChrisMattock That's great - thanks for the... 12-04-2008, 03:12 PM
ChrisMattock No worries have sorted it... 12-04-2008, 03:14 PM
Andy Pope I know your solved but you... 12-04-2008, 03:26 PM
prestopr Re: Remove selected item from... 02-27-2014, 09:11 AM
Kenneth Hobson I would not use the Click... 12-04-2008, 03:25 PM
Kenneth Hobson If you are going to use the... 12-04-2008, 03:32 PM
ChrisMattock That's brilliant, thank you... 12-04-2008, 03:53 PM
Andy Pope Re: Remove selected item from... 02-27-2014, 09:31 AM
prestopr Re: Remove selected item from... 02-28-2014, 08:36 AM
  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