Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a listbox which is bound to one table in the database. Whenever i load the form the first value in the listbox is selected automatically. Now i want to load the form and no items in the listbox must be selected. Is that possible??????????
Posted

1 solution

Try ClearSelected() method like this
C#
listBox1.ClearSelected();


I hope this will help you out. If it works fine accept answer please.
 
Share this answer
 
v2
Comments
Member 8570559 20-Feb-12 4:54am    
thanks bro...its working..
jai000 20-Feb-12 4:56am    
You most welcome

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900