G
Guest
I set up a combobox with Visual Studio 2003 and it generated the following
code:
//
// serverComboBox
//
this.serverComboBox.DropDownWidth = 121;
this.serverComboBox.Items.AddRange(new object[] {
"AllServers",
"1Server",
"2Server",
"3Server"});
this.serverComboBox.Location = new System.Drawing.Point(136, 16);
this.serverComboBox.Name = "serverComboBox";
this.serverComboBox.Size = new System.Drawing.Size(121, 21);
this.serverComboBox.TabIndex = 0;
The problem is that the items are not displayed in the drop down. If I
select the second item then the combo box text seems to get set to the right
value (in this case "1Server" but I don't see any of the items that I am to
select until it is selected and the combo box text is set to the selection.
How can I enable the viewing of the combo box items?
Thank you.
Kevin
code:
//
// serverComboBox
//
this.serverComboBox.DropDownWidth = 121;
this.serverComboBox.Items.AddRange(new object[] {
"AllServers",
"1Server",
"2Server",
"3Server"});
this.serverComboBox.Location = new System.Drawing.Point(136, 16);
this.serverComboBox.Name = "serverComboBox";
this.serverComboBox.Size = new System.Drawing.Size(121, 21);
this.serverComboBox.TabIndex = 0;
The problem is that the items are not displayed in the drop down. If I
select the second item then the combo box text seems to get set to the right
value (in this case "1Server" but I don't see any of the items that I am to
select until it is selected and the combo box text is set to the selection.
How can I enable the viewing of the combo box items?
Thank you.
Kevin