c# - changing combo box drop down position in winforms -


this question has answer here:

how can change dropdown position (width , height) of combobox. docked combobox right of form requirement,as dropdown width more combobox width, goes out of form.

how can fix !!!

you can achieve post combobox dropdown position

this works fine when use below codes

mycombobox cmb = new mycombobox(); cmb.dock = dockstyle.right; cmb.items.add("hello world"); cmb.items.add("how man"); cmb.selectedindex = 0; this.controls.add(cmb); 

Comments