c# - ComboBoxes won't show up -
why won't comboboxes show on form? (they invisible)
private combobox[] statsvalues; public frmmain() { initializecomponent(); statsvalues = new combobox[5]; (byte b = 0; b < statsvalues.length; b++) { statsvalues[b] = new combobox(); statsvalues[b].location = new system.drawing.point(300, 300); statsvalues[b].dropdownstyle = comboboxstyle.dropdownlist; statsvalues[b].visible = true; statsvalues[b].enabled = true; } }
the controls created dinamically in way need added form controls' collection
this.controls.addrange(statsvalues);
as side note, creating 5 combox @ same position. when show them on form won't able see of them, lastly 1 on top of other fours
c# combobox invisible
No comments:
Post a Comment