Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
If 'Girl' is selected in the combobox by the user, how can i get 'the girl got in her car'or any other string displayed in a richtextbox on the same form

looking for the syntax and right way to implement this, thank you

What I have tried:

Ive looked at multiple pdf's and youtube videos. I can enter data into a combobox via a button click but have not found a solution to my problem
Posted
Updated 14-May-17 23:30pm
Comments
[no name] 13-May-17 21:06pm    
You need to update your posting with more information. Winforms? WPF? What RichTextBox? What ComboBox? What have you tried? Where is that code? What is the problem with that code? There isn't any C++ CLR or otherwise anywhere in your not-a-question.

1 solution

You must implement a message handler for CBN_SELCHANGE notification and in the handler function you can set the text of your control.

Read the article Using the CComboBox control to find some explanations.
 
Share this answer
 

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