Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

combobox selection

Posted on 2004-09-16
Last Modified: 2008-03-06
im assuming this is a really easy question, but when my form loads, i have multiple comboboxs' that appear to be selected. (The text within them that is).....and i cant figure out how to unselect them

Question by:bramsquad
  • 3
  • 2
LVL 10

Expert Comment

ID: 12075846
Combobox1.SelectedIndex = -1

Author Comment

ID: 12075911
let me rephrase,

i want the item selected, just not the text...

LVL 19

Accepted Solution

Desp earned 50 total points
ID: 12075939
Combobox1.SelectionStart = 0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center


Author Comment

ID: 12106201

sortof, but ill give you some since you put me on the right track

heres what you want

Combobox1.SelectionStart = Combobox1.Text.Length

LVL 19

Expert Comment

ID: 12109273
>>>i want the item selected, just not the text...

what does that mean then?

btw thanks for the C grade, Most of the peoples here dont like to answer the questions of ppls who have Cs and Bs in their question history

Author Comment

ID: 12118361
i use "c" grades sparingly, take a look at my profile.

anyways, the first answer gave no selection in the combo box.  (it was blank, no item at all)

your answer gave me the item i wanted, but the text within the combobox was selected (which is what i was asking how not to do)

the reason your code doesnt work, is it selects the text as position zero.  mine selects the text at the last position, or so to speak, leaves it unselected.  

you didnt provide me with a thourough answer, thats why i gave you a "c"



Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Get the selected ValueMember of Combobox 5 39
VB.NET 2008 (3.5 Framework) Remove all items from List 3 32
write xml in vb.net 2 32
Vb.net threads keep increasing 2 35
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…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

840 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