Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
First I set the value of comboBox from the drop list, now I want to set ComboBox as blank value on button click event. I have change the "Type" property of combo box as Drop List. What is the solution?
Posted
Updated 10-May-11 21:52pm
v3

1 solution

C++
yourComboBox.SetCurSel(-1);
//or
((CComboBox*)GetDlgItem(IDC_YOUR_COMBO))->SetCurSel(-1);
 
Share this answer
 
Comments
Ruchira Patel 11-May-11 0:41am    
Thanks a lot..
Olivier Levrey 11-May-11 3:52am    
You are 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