Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I am beginner in VC. In my form I have a Combo Box and an Edit Control. I want when the selected item on combo box will change the selection appears on Edit control.

Best
Posted

1 solution

CComboBox[^], CEdit[^]. Now from those two all you need to do is get the selected item from the combobox and set it into the edit box. A fairly good exercise in learning about controls.
 
Share this answer
 
Comments
Davani Pur 12-May-12 9:08am    
Thank you for your answer. I had Initialized two controls and had add Item to Combo Box but I don't know how to get the selected item from Combo Box and parse it to edit control
Richard MacCutchan 12-May-12 11:21am    
If you read the documentation for the combobox control you will find a number of commands with the prefix Get. It should not be too difficult to find the ones that will return the current selection and the text of an item. Once you have that text then you just need to set it into the CEdit control.

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