当我有3个不同的组合框时,如何将组合框中的选定项目显示到richtextbox [英] How can I show a selected item from a combobox to a richtextbox when I have 3 different combobox
问题描述
您好,
当我有3个不同的组合框时,如何将组合框中的选定项目显示到richtextbox,
< br $>
我想要在richtextbox中显示所选的combobox1和combobox2项目,但是当我选择了combobox3的所选项目时,它会替换combobox2的文本
我该怎么做?
我尝试过的事情:
如果是combobox3.SelectedItem =x那么
combobox2.DropDownStyle = ComboBoxStyle.DropDown
Text =
Hello,
How can I show a selected item from a combobox to a richtextbox when I have 3 different combobox,
I want that the selected item of combobox1 and combobox2 shows in the richtextbox, but when I select the selected item of combobox3 it replaces the text of combobox2
how can I do this?
What I have tried:
If combobox3.SelectedItem = "x" Then
combobox2.DropDownStyle = ComboBoxStyle.DropDown
Text = " "
推荐答案
只需使用StringBuilder或类似的方法组合所有值。
Just combine all the values using a StringBuilder or similar.
这篇关于当我有3个不同的组合框时,如何将组合框中的选定项目显示到richtextbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!