Home All Groups Group Topic Archive Search About

limiting combobox....

Author
12 Jun 2009 1:08 AM
Brian
Hi,
I would like to limit the options that users select in a combobox.  I have
the values in the list already and only want those values as a choice.  I've
not found a way to do this without writing code for it, i would have thought
that there would have been a option to do this from the properities?
Thanks,
    Brian

Author
12 Jun 2009 1:48 AM
James Hahn
Do you mean that you do not want the user to type their own list item for
the combobox?  In that case, make sure the  DropDownStyle property is set to
DropDownList.

Show quoteHide quote
"Brian" <bsgallatin@community.nospam> wrote in message
news:eYknLpv6JHA.3860@TK2MSFTNGP05.phx.gbl...
> Hi,
> I would like to limit the options that users select in a combobox.  I have
> the values in the list already and only want those values as a choice.
> I've not found a way to do this without writing code for it, i would have
> thought that there would have been a option to do this from the
> properities?
> Thanks,
>    Brian
>
Author
12 Jun 2009 9:04 AM
Cor Ligthert[MVP]
Brian,

You can do that using databinding, but you don't write much more about what
your goal is than to use the combobox.

Cor

Show quoteHide quote
"Brian" <bsgallatin@community.nospam> wrote in message
news:eYknLpv6JHA.3860@TK2MSFTNGP05.phx.gbl...
> Hi,
> I would like to limit the options that users select in a combobox.  I have
> the values in the list already and only want those values as a choice.
> I've not found a way to do this without writing code for it, i would have
> thought that there would have been a option to do this from the
> properities?
> Thanks,
>    Brian
>
Author
12 Jun 2009 6:30 PM
Brian
Hello Cor and James...
My goal is to have a combobox, that only has values I've added to it... and
the user is limited to those values.  It would be nice... some users like to
use the kb and start typing and have it auto fill and  tab out.. and some
users just use the mouse.

Show quoteHide quote
"Cor Ligthert[MVP]" <Notmyfirstn***@planet.nl> wrote in message
news:%23m3Kazz6JHA.5780@TK2MSFTNGP04.phx.gbl...
> Brian,
>
> You can do that using databinding, but you don't write much more about
> what your goal is than to use the combobox.
>
> Cor
>
> "Brian" <bsgallatin@community.nospam> wrote in message
> news:eYknLpv6JHA.3860@TK2MSFTNGP05.phx.gbl...
>> Hi,
>> I would like to limit the options that users select in a combobox.  I
>> have the values in the list already and only want those values as a
>> choice. I've not found a way to do this without writing code for it, i
>> would have thought that there would have been a option to do this from
>> the properities?
>> Thanks,
>>    Brian
>>
>
Author
13 Jun 2009 12:37 AM
James Hahn
In that case the DropDownStyle property setting of DropDownList is what you
need.

Show quoteHide quote
"Brian" <bsgallatin@community.nospam> wrote in message
news:eUbsmv46JHA.4864@TK2MSFTNGP03.phx.gbl...
> Hello Cor and James...
> My goal is to have a combobox, that only has values I've added to it...
> and the user is limited to those values.  It would be nice... some users
> like to use the kb and start typing and have it auto fill and  tab out..
> and some users just use the mouse.
>
Author
13 Jun 2009 5:52 AM
Cor Ligthert[MVP]
Brian,

Since version 2.0 that exist standard,  it is called autocomplete

http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.autocompletemode.aspx

Cor

Show quoteHide quote
"Brian" <bsgallatin@community.nospam> wrote in message
news:eUbsmv46JHA.4864@TK2MSFTNGP03.phx.gbl...
> Hello Cor and James...
> My goal is to have a combobox, that only has values I've added to it...
> and the user is limited to those values.  It would be nice... some users
> like to use the kb and start typing and have it auto fill and  tab out..
> and some users just use the mouse.
>
> "Cor Ligthert[MVP]" <Notmyfirstn***@planet.nl> wrote in message
> news:%23m3Kazz6JHA.5780@TK2MSFTNGP04.phx.gbl...
>> Brian,
>>
>> You can do that using databinding, but you don't write much more about
>> what your goal is than to use the combobox.
>>
>> Cor
>>
>> "Brian" <bsgallatin@community.nospam> wrote in message
>> news:eYknLpv6JHA.3860@TK2MSFTNGP05.phx.gbl...
>>> Hi,
>>> I would like to limit the options that users select in a combobox.  I
>>> have the values in the list already and only want those values as a
>>> choice. I've not found a way to do this without writing code for it, i
>>> would have thought that there would have been a option to do this from
>>> the properities?
>>> Thanks,
>>>    Brian
>>>
>>
>
>
Author
14 Jun 2009 5:25 AM
Brian
duh... don't know how i missed that...

Show quoteHide quote
"Cor Ligthert[MVP]" <Notmyfirstn***@planet.nl> wrote in message
news:eoJors%236JHA.4100@TK2MSFTNGP06.phx.gbl...
> Brian,
>
> Since version 2.0 that exist standard,  it is called autocomplete
>
> http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.autocompletemode.aspx
>
> Cor
>
> "Brian" <bsgallatin@community.nospam> wrote in message
> news:eUbsmv46JHA.4864@TK2MSFTNGP03.phx.gbl...
>> Hello Cor and James...
>> My goal is to have a combobox, that only has values I've added to it...
>> and the user is limited to those values.  It would be nice... some users
>> like to use the kb and start typing and have it auto fill and  tab out..
>> and some users just use the mouse.
>>
>> "Cor Ligthert[MVP]" <Notmyfirstn***@planet.nl> wrote in message
>> news:%23m3Kazz6JHA.5780@TK2MSFTNGP04.phx.gbl...
>>> Brian,
>>>
>>> You can do that using databinding, but you don't write much more about
>>> what your goal is than to use the combobox.
>>>
>>> Cor
>>>
>>> "Brian" <bsgallatin@community.nospam> wrote in message
>>> news:eYknLpv6JHA.3860@TK2MSFTNGP05.phx.gbl...
>>>> Hi,
>>>> I would like to limit the options that users select in a combobox.  I
>>>> have the values in the list already and only want those values as a
>>>> choice. I've not found a way to do this without writing code for it, i
>>>> would have thought that there would have been a option to do this from
>>>> the properities?
>>>> Thanks,
>>>>    Brian
>>>>
>>>
>>
>>
>