How to diselect multiple text in listbox

I have a listbox in my form where i have added 10-15 list items. Now i

Page 1 of 1

1 Replies - 1179 Views - Last Post: 29 December 2008 - 11:22 AM Rate Topic: -----

#1 sumit5283  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 29-December 08

How to diselect multiple text in listbox

Post icon  Posted 29 December 2008 - 03:17 AM

I have a listbox in my form where i have added 10-15 list items. Now i have to write a code for this object when i select multiple listitem, how can i dislect those slected item throug code. I don't want to clear those list item.
Is This A Good Question/Topic? 0
  • +

Replies To: How to diselect multiple text in listbox

#2 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: How to diselect multiple text in listbox

Posted 29 December 2008 - 11:22 AM

Set the SelectedIndex of the Listbox to -1. When the SelectedIndex is set to -1, this indicates that nothing is selected.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1