Results 1 to 2 of 2

Thread: Listbox ClearSelection Problem

  1. #1

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Listbox ClearSelection Problem

    Hi all,

    I need to clear all selections in my listbox on a particular event and I used following code to do so.

    departmentsListBox.ClearSelected();

    But this is not working fine. One item is remain selected in the listbox. I need to clear all the selections.

    Any ideas ??

    Thanks

  2. #2
    Fanatic Member brown monkey's Avatar
    Join Date
    Jun 2004
    Location
    Cebu
    Posts
    552

    Re: Listbox ClearSelection Problem

    listBox1.SelectedIndex=-1

    ?

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