•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 397,845 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,502 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser:
Views: 2445 | Replies: 11
![]() |
•
•
Join Date: Jul 2007
Posts: 24
Reputation:
Rep Power: 2
Solved Threads: 0
Hello
I'm writing my first ever VB program. I'm using 2 combo boxes to allow the user to select 2 different pieces of information. Is there any way that I can make my program automaticaly open the first combo box up at startup so the user can easily see what they should be doing. At the moment at startup both combo boxes look like empty text boxes until the user clicks on one of them and then the box opens up. I would like to remove the need to click on the first box at startup.
Thanks you you help
Simon
I'm writing my first ever VB program. I'm using 2 combo boxes to allow the user to select 2 different pieces of information. Is there any way that I can make my program automaticaly open the first combo box up at startup so the user can easily see what they should be doing. At the moment at startup both combo boxes look like empty text boxes until the user clicks on one of them and then the box opens up. I would like to remove the need to click on the first box at startup.
Thanks you you help
Simon
•
•
Join Date: Dec 2002
Location: West Virginia
Posts: 374
Reputation:
Rep Power: 6
Solved Threads: 37
•
•
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,213
Reputation:
Rep Power: 4
Solved Threads: 78
•
•
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,213
Reputation:
Rep Power: 4
Solved Threads: 78
•
•
Join Date: Dec 2002
Location: West Virginia
Posts: 374
Reputation:
Rep Power: 6
Solved Threads: 37
Hi,
Wrie this code in Got focus event of combo box:
This will open up the drop down list
Regards
Veena
Wrie this code in Got focus event of combo box:
PrivateSub ComboBox1_GotFocus(ByVal sender AsObject, ByVal e As System.EventArgs) Handles ComboBox1.GotFocus SendKeys.Send("%{down}") End Sub
This will open up the drop down list
Regards
Veena
Last edited by QVeen72 : Jul 29th, 2007 at 8:22 am.
•
•
Join Date: Jul 2007
Posts: 24
Reputation:
Rep Power: 2
Solved Threads: 0
•
•
•
•
Hi,
Wrie this code in Got focus event of combo box:
PrivateSub ComboBox1_GotFocus(ByVal sender AsObject, ByVal e As System.EventArgs) Handles ComboBox1.GotFocus SendKeys.Send("%{down}") End Sub
This will open up the drop down list
Regards
Veena
sending %{DOWN} which I think is sending Alt + the down arrow key does not seem to do anything. Lucky all the items in my selection box all start with an open bracket so by sending that it opens up the box for me. I can see why %{DOWN} should work but I cant get it to work
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb VB.NET Marketplace
- combo box (PHP)
- Want to use radio button or menu bar instead of combo box (Java)
- combo box (ASP)
- How do I limit text char in Combo box? (VB.NET)
- combo box help (VB.NET)
Other Threads in the VB.NET Forum
- Previous Thread: Automatic Copy to Notepad.
- Next Thread: How will display multiple table records in crystal report



Linear Mode