Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i have a combo box that i can select serial port baudrate! i want when i press on a button, the value of this combo box is reseted and select again. how can i do this?
Posted
Comments
IpsitaMishra 31-Oct-13 5:41am    
Add a default value ---Select Value ---in the commbo box.If you want to reset it just change it.

1 solution

try Below Solution
C#
ComboBoxID.SelectedIndex = -1;
 
Share this answer
 
Comments
mohsenvasefi 31-Oct-13 6:07am    
thanks a lot for your help
prashant patil 4987 31-Oct-13 6:10am    
Welcome, mohsenvasefi.
Hey Accept my solution as your answer.
mohsenvasefi 2-Nov-13 1:55am    
sorry, i forgot it ;)
prashant patil 4987 10-Nov-13 23:32pm    
no problem
have a great future ahead.
:)

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