组合框选择为不可编辑和默认 [英] combobox Selection as Noneditable and Default
本文介绍了组合框选择为不可编辑和默认的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想组合框不可编辑,并希望在组合框选择之前显示默认文本为选择组合框。
I want to do combobox noneditable and want to show default text as Select to Combobox before combobox selection.
推荐答案
声明
int索引= 0;
和哪个索引你想要默认将该值分配给索引
假设你想加载第三项作为默认值
然后分配索引= 3;
declare
int Index=0;
and which index u want default assign that value to index
suppose u want to load on 3rd item as default
then assign Index=3;
Combobox.SelectedIndex = Index;
用于不可编辑的更改Readonly
for non editable change Readonly
http://whathaveyoutried.com/ [ ^ ]
有人可以帮助我,我需要可以访问组合框中的其中一个项目有人可以帮我怎么做吗?
can someone help me i need to have access to one of the items on the combobox can someone help me how to do it ?
这篇关于组合框选择为不可编辑和默认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文