listbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

is there a way to programmatically unselect (unhighlight) an item in the
listbox without selecting (highlighting) another? in other words, no item is
selected (highlighted). thanks.
 
Newbie said:
is there a way to programmatically unselect (unhighlight) an item in the
listbox without selecting (highlighting) another? in other words, no item is
selected (highlighted). thanks.

Sure. Set the SelectedIndex to -1 to clear all selections. Set it to a
valid value in the list to select an item.

Matt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top