如何在VB.NET中给出组合框默认值? [英] How to give combo box default value in VB.NET ?
本文介绍了如何在VB.NET中给出组合框默认值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好开发者
i有一个从数据库填充的组合框我需要在第一次显示时给它一个默认显示值0值。
可以帮助吗? br />
问候
我尝试过:
如何在vb.net中给出组合框默认值?
Hello Developers
i have a combo box populated from database i need to give it a default display value with 0 value in first show .
can any one help ?
Regards
What I have tried:
how to give combo box default value in vb.net ?
推荐答案
将组合框SelectedIndex设置为要显示的组合框项目,将其设置为-1将选择清除为无。
Set the combobox SelectedIndex to the combobox item you want to be shown, setting it to -1 clear the selection to none.
这篇关于如何在VB.NET中给出组合框默认值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文