ComboBox drop down button

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
 
J

Johnny J.

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

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


Venlig hilsen
Johnny J.
 
G

Guest

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

combobox 4
Combobox problems 5
ComboBox Paste 2
Help With MS Access 4
Using up and down arrow keys in datagridview 0
Open ComBobox dropdown list when F12 pressed 5
ComboBox value 4
combobox dropdown event 1

Top