我在"组合框"中更新文本时遇到问题.我的组合框上有数据,但是如果数据不可用,我想自行输入.我怎样才能做到这一点?
来自设计师:
您需要转到的Items
属性ComboBox
以添加项目.
来自编码:
ComboBox1.Items.Add("Item1");
ComboBox1.Items.Add("Item2");
ComboBox1.Items.Add("Item3");
I have a problem on update text in my Combo Box. I have the data on my combo box but if the data is not available, I want to type it by my self. How can I do that?
from Designer :
you need to goto Items
Property of the ComboBox
to Add the Items.
from Coding :
ComboBox1.Items.Add("Item1");
ComboBox1.Items.Add("Item2");
ComboBox1.Items.Add("Item3");
本人是.net程序员,因为英语不行,使用工具翻译,希望对有需要的人有所帮助
如果本文质量不好,还请谅解,毕竟这些操作还是比较费时的,英语较好的可以看原文