ComboBox drop down button

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a combobox on a form with dropdown style. Is it possible to 'push'
the dropdown arrow button from code - causing the combobox to dropdown.

regards Jesper, DK
 
Det tror jeg ikke, men du skulle kunne anvende fölgende workaround:

minComboBox.Focus();
SendKeys.Send("%{DOWN}");


Venlig hilsen
Johnny J.
 
Thanks Johnny, It works with the following code

private void button1_Click_1(object sender, EventArgs e)
{
cmb_filename.Focus();
SendKeys.Send("{F4}");
}
Regards Jesper,
 
Back
Top