85276204 发表于 2016-7-14 16:25:22

ComboBoxEdit奇葩问题,求解答

画面上用了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;


页: [1]
查看完整版本: ComboBoxEdit奇葩问题,求解答