c#中下拉框comboBox和文本框textBox设置默认值
程序开发
2023-09-09 08:04:57
c#中下拉框comboBox和文本框textBox设置默认值
一、下拉框
1、先把下拉框的字符串集合定义好

2、设置默认值

this.comboBox1.SelectedIndex = 0;
//索引是从0开始的
//0就是第一个
//设置其他的自己随意,在索引范围内就行
二、文本框
1、设置默认值-代码加

this.textBox43.Text = "0.009";
2、窗口加

Q.E.D.
标签:
上一篇:
仿照微信Oauth2.0接入方案
下一篇:
相关文章
-
无相关信息