How to set the default value to nothing when using the dropdownlis

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to set the default value of a combobox to "nothing" or spaces
when my form loads. I am using the dropdown list property becasue i want the
end-user to select only values listed in the combobox. Also keeping the
property that when a user enters a letter the cursor goes to the records
starting with that letter.

Right now when the form loads all the comboboxes have already a value, and I
do not it to behave like that, I also tried using the dropdown property, but
this one lets the user enter other values which are not in the list.

Any suggestion?

Thanks a lot.
 
Eduardo78 said:
I would like to set the default value of a combobox to "nothing" or spaces
when my form loads. I am using the dropdown list property becasue i want
the
end-user to select only values listed in the combobox. Also keeping the
property that when a user enters a letter the cursor goes to the records
starting with that letter.

Set the combobox's 'SelectedIndex' property to -1 to clear the selection.

<URL:http://groups.google.de/groups?q=dotnet+combobox+autocomplete>
 
Thankyou a lot, just what I was looking for.

Thanks again Herfried.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top