怎么给combobox赋初值并指定里面的内容为只读的呀??? 我有3个值:1,2,3用增加项的方式放到combobox里我想让我的WinForms窗体在打开时 commbobox里就显示1 并且是只读的 就是不许用户修改combobox里面的值 请问该怎么搞啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 commbobox.Item.Add("1");commbobox.Item.Add("2");commbobox.Item.Add("3");commbobox.Enabled=false; comboBox1.Text = "1";comboBox1.Enabled = false; this.comboBox1.DropDownStyle=System.Windows.Forms.ComboBoxStyle.DropDownList; commbobox1.Item.Add("1"); commbobox1.Item.Add("2"); commbobox1.Item.Add("3"); this.comboBox1.DropDownStyle=System.Windows.Forms.ComboBoxStyle.DropDownList; 把它的dropdownstyle属性值设为dropdownlist commbobox1.Item.Add("1"); commbobox1.Item.Add("2"); commbobox1.Item.Add("3"); this.comboBox1.DropDownStyle=ComboBoxStyle.DropDownList; 正则统计词组出现次数 200分求解 关于C#中串口的读操作 c#.net怎么实现以下功能 谁有datawindow.net的在c#使用的详细资料? 关于c#操作access数据库的问题 c# 与 IIS6.0 独立程序池问题 正则表达式怎么用啊? 关于从OpenFileDialog读取的txt文档如何放入txtBox中的问题! c# WINFORM怎样做WebForm的DataList效果 用post方法提交表单到第二个页面时,用了IsPostBack判断,但是页面还是加载2次
commbobox.Item.Add("2");
commbobox.Item.Add("3");
commbobox.Enabled=false;
comboBox1.Text = "1";
comboBox1.Enabled = false;
commbobox1.Item.Add("2");
commbobox1.Item.Add("3"); this.comboBox1.DropDownStyle=System.Windows.Forms.ComboBoxStyle.DropDownList;
commbobox1.Item.Add("2");
commbobox1.Item.Add("3");
this.comboBox1.DropDownStyle=ComboBoxStyle.DropDownList;