开发者论坛

 找回密码
 注册 (请使用非IE浏览器)
查看: 3336|回复: 0

ComboBoxEdit奇葩问题,求解答

[复制链接]

0

精华

0

贡献

0

赞扬

帖子
2
软币
84
在线时间
2 小时
注册时间
2016-7-14
发表于 2016-7-14 16:25:22 | 显示全部楼层 |阅读模式
画面上用了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;


回复

使用道具 举报

Archiver|手机版|小黑屋|开发者网 ( 苏ICP备08004430号-2 )
版权所有:南京韵文教育信息咨询有限公司

GMT+8, 2024-12-23 06:02

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表