Results 1 to 2 of 2

Thread: Removing Selected Item from ListBox

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2002
    Location
    Pakistan
    Posts
    32

    Exclamation Removing Selected Item from ListBox

    Hi...

    I have two listboxes lets say listbox1 and listbox2.
    I want to move selected data from listbox1 to listbox2.
    Thats easy i have done that. With that i want the selected item in the listbox1 to be removed .... Like the item thats been shifted to listbox2 should not be available in listbox1 anymore,

    Any help in this regard will be highly appreciated.

    Regards,

    Harris Moin
    You'll get life just for once so don't waste it .......

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    try this:

    Code:
        MyItems.Items.RemoveAt(MyItems.SelectedIndex);

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