Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

combobox selection

Posted on 2004-09-16
6
Medium Priority
?
325 Views
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

thanks!
0
Comment
Question by:bramsquad
  • 3
  • 2
6 Comments
 
LVL 10

Expert Comment

by:Clif
ID: 12075846
Combobox1.SelectedIndex = -1
0
 
LVL 8

Author Comment

by:bramsquad
ID: 12075911
let me rephrase,

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

~b
0
 
LVL 19

Accepted Solution

by:
Fahad Mukhtar earned 100 total points
ID: 12075939
Combobox1.SelectionStart = 0
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 8

Author Comment

by:bramsquad
ID: 12106201
Desp:

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

heres what you want

Combobox1.SelectionStart = Combobox1.Text.Length

~b
0
 
LVL 19

Expert Comment

by:Fahad Mukhtar
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
0
 
LVL 8

Author Comment

by:bramsquad
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"

~b

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Loops Section Overview
Suggested Courses

916 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