- 积分
- 0
- 在线时间
- 2 小时
- 主题
- 2
- 注册时间
- 2016-7-14
- 帖子
- 2
- 最后登录
- 2016-10-31
- 帖子
- 2
- 软币
- 84
- 在线时间
- 2 小时
- 注册时间
- 2016-7-14
|
画面上用了ComboBoxEdit 控件,也实装了。在有个用户的电脑上,画面能正常表示,然后控件上只是显示实装的第一个项目A,单击下拉框没有任何反应。
有人遇到过吗?
代码如下:
ComboBoxEdit typeEdit = new ComboBoxEdit();
typeEdit.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
typeEdit.Properties.Items.Add("A");
typeEdit.Properties.Items.Add("B");
typeEdit.Properties.Items.Add("C");
typeEdit.Properties.Items.Add("D");
typeEdit.Font = new System.Drawing.Font("宋体", FOwCommon.PToPx(9F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
typeEdit.Properties.Appearance.Font = new System.Drawing.Font("宋体", FOwCommon.PToPx(9F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
typeEdit.Properties.AppearanceFocused.Font = new System.Drawing.Font("宋体", FOwCommon.PToPx(9F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
typeEdit.Properties.AppearanceReadOnly.Font = new System.Drawing.Font("宋体", FOwCommon.PToPx(9F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
typeEdit.Properties.AppearanceDisabled.Font = new System.Drawing.Font("宋体", FOwCommon.PToPx(9F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
typeEdit.Properties.AppearanceDropDown.Font = new System.Drawing.Font("宋体", FOwCommon.PToPx(9F), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
typeEdit.SelectedIndexChanged += new EventHandler(cmbProxyType_SelectedIndexChanged);
this.Controls.Add(typeEdit);
typeEdit.Location = new Point(75, 56);
typeEdit.Size = new Size(96, 20);
typeEdit.SelectedIndex = 0;
|
|