在C#中将组合框项目设置为选定状态 [英] Setting combobox item in selected state in c#
本文介绍了在C#中将组合框项目设置为选定状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
将C#组合框项目设置为选定状态的方法是什么
请帮助
感谢
Hello,
what is the method to set a c# combobox item to selected state
plz help
thanks
推荐答案
有几个:试试
comboBox1.SelectedIndex = 1;
请参阅此处: SelectedIndex [ SelectedItem [SelectedText [
See here : SelectedIndex[^]
There is also SelectedItem [^]and SelectedText[^]
您应该考虑一些事情:
1-购买一本基本的C#书籍并阅读
2-学习如何使用Google并阅读MSDN
3-开始在IDE中使用智能感知来浏览您不熟悉的对象.
可以在代码中设置SelectedItem属性.
You should consider a number of things:
1 - buy a basic C# book and read it
2 - learn how to use google and read MSDN
3 - start using the intellisense in the IDE to explore objects you''re not familiar with.
The SelectedItem property can be set in code.
这篇关于在C#中将组合框项目设置为选定状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文