vinoraja

Hi,

I+6'm doing windows application (C#) for the touch screen,but wanted to increase the size of my dropdown control, the drop - icon(dropdown) is still small to be used with the fingers.Please help me to maximize the width of drop-icon and not the dropdown control.

Cheers,

Vino.




Re: Windows Forms General Dropdown - touch screen

Zhi-Xin Ye - MSFT

You can make that "drop-icon" much higher by enlarging the Font size of the ComboBox, but as far as I know, there's no way to change its width.




Re: Windows Forms General Dropdown - touch screen

nobugz

You can't change the size afaik. But you can put a button of the right size over the combobox. If you place it just right, it can overlap the dropdown arrow and look seamless next to the combo's text box. Try this code for the button:

private void button1_Click(object sender, EventArgs e) {
button1.Capture = false;
comboBox1.Focus();
comboBox1.DroppedDown = true;
}






Re: Windows Forms General Dropdown - touch screen

Zhi-Xin Ye - MSFT

You can use the ComboBoxRenderer class to draw the combobox style you want.