Solved

combobox

Posted on 2009-04-06
1
127 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 125 total points
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now