?
Solved

combobox

Posted on 2009-04-06
1
Medium Priority
?
136 Views
Last Modified: 2012-05-06
How can set the first item to "Select.." in vb.net on Form_load? It display only when I select the dropdown...

With Me.ComboBox1.Items
            .Add("Select...")
            .Add("client#1")
            .Add("client#2")
            .Add("client#3")
            .Add("client#4")

end with
0
Comment
Question by:VBdotnet2005
1 Comment
 
LVL 15

Accepted Solution

by:
ChloesDad earned 500 total points
ID: 24082219
Hi

Use Me.combobox1.selectedindex=0 after adding the items.

I would put it into public sub new after the initialise components call rather than form load though. If the method does not exist then just create it.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Integration Management Part 2
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question