ComboBox

cobxItems entspricht dem Namen der ComboBox.

private System.Windows.Forms.ComboBox cobxItems;
this.cobxItems= new System.Windows.Forms.ComboBox();
 
this.cobxItems.BackColor = System.Drawing.SystemColors.Window;
this.cobxItems.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;			// Style: DropDownList = readonly, DropDown = writable
this.cobxItems.FormattingEnabled = true;
this.cobxItems.Items.AddRange(new object[] {
	"Item 1",
	"Item 2",
	"Item 3",
	"Item 4",
	"Item 5"});
this.cobxItems.Location = new System.Drawing.Point(207, 177);
this.cobxItems.Name = "cobxItems";
this.cobxItems.Size = new System.Drawing.Size(191, 21);
this.cobxItems.TabIndex = 15;
this.cobxItems.SelectedIndexChanged += new System.EventHandler(this.cobxItems_IndexChanged);	//Event

csharp/combobox.txt · Zuletzt geändert: 2015/07/06 22:32 (Externe Bearbeitung)