如何根据下拉框值C ++ / clr在文本框中显示文本 [英] How do I show text in textbox depending on dropdownbox value, C++/clr

查看:97
本文介绍了如何根据下拉框值C ++ / clr在文本框中显示文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果用户在组合框中选择了女孩,我怎样才能让女孩进入她的车里或同一表格上的富文本框中显示的任何其他字符串



寻找语法和正确的方法来实现这一点,谢谢



我尝试过:



我看过多个pdf和youtube视频。我可以通过点击按钮将数据输入到组合框中,但是没有找到我的问题的解决方案

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

推荐答案

你必须为 CBN_SELCHANGE通知,在处理函数中,您可以设置控件的文本。



阅读文章使用CComboBox控件找到一些解释。
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.


这篇关于如何根据下拉框值C ++ / clr在文本框中显示文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆