473,406 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

ComboBox drop down button

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
Sep 21 '07 #1
2 2226
Det tror jeg ikke, men du skulle kunne anvende fölgende workaround:

minComboBox.Focus();
SendKeys.Send("%{DOWN}");
Venlig hilsen
Johnny J.

"Jesper, Denmark" <Je***********@discussions.microsoft.comwrote in message
news:E8**********************************@microsof t.com...
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

Sep 21 '07 #2
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,

"Johnny J." wrote:
Det tror jeg ikke, men du skulle kunne anvende fölgende workaround:

minComboBox.Focus();
SendKeys.Send("%{DOWN}");
Venlig hilsen
Johnny J.

"Jesper, Denmark" <Je***********@discussions.microsoft.comwrote in message
news:E8**********************************@microsof t.com...
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


Sep 21 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: hasden | last post by:
I'm working in .NET and I can't seem to get the behavior that I need from the combobox. I'm sure it's possible, I just don't have the .NET experience. Any help would be greatly appreciated. I need...
2
by: Tim Graichen | last post by:
I may have already asked this one, but, Is there anyway of hiding the dropdown control button on a combobox until the field has focus? Because the values in the combobox can be between 5...
4
by: Beeeeeeeeeeeeves | last post by:
I have an ownerdrawn combo box which I am drawing with an image and some text, this is all working beautifully apart from the difference in the Brush I have to draw the background and the text with...
5
by: ross kerr | last post by:
Hi All, I am extending the combobox to create a control that selects an item based on the text the user is typing into the text area of the control. I have an issue that occurs only when i...
9
by: Jason Simard via .NET 247 | last post by:
Hi, Does anyone know a way to make a combobox "read-only", similar to the read-only property of a textbox? In essence, make a combobox readonly...making the combobox text not gray out but be...
2
by: Don | last post by:
I've looked high and low for some code that will allow me to have a combobox with a flat borderstyle. I found a few examples, but nothing that was really usable for me. I had the following...
0
by: Vern | last post by:
I'm working on a C# windows form app, and I can't find anyway to avoid the following behavior. If the combobox drop down list is open, and you click on a button (or anywhere) while the drop down...
0
by: TD | last post by:
I have a combobox that is sometimes slow to drop down when clicked on. If you select an item in the list that is near the top of the list then the next time you click on the combobox it drops down...
7
by: hung tran | last post by:
Hi, I'd like to drop down a combobox after validating the Leave() event, how can I do that ? Thanks
3
by: Simon van Beek | last post by:
Dear reader, What can be wrong in my ComboBox, the property "Auto Expand" is set to Yes, but by typing in the ComboBox it doesn't expand. Is this because the source of the ComboBox is a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.