本文介绍了更改组合框中自动编译列表的字体系列,其中AutoCompleteSource是ListItems的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.comboBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.comboBox1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.comboBox1.DataSource = this.driverdetailBindingSource;
this.comboBox1.DisplayMember = "name";
this.comboBox1.Font = new System.Drawing.Font("Gujrati Saral-4", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(86, 33);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(121, 25);
this.comboBox1.TabIndex = 1;
this.comboBox1.ValueMember = "d_id";
推荐答案
这篇关于更改组合框中自动编译列表的字体系列,其中AutoCompleteSource是ListItems的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!