Connecting Tech Pros Worldwide Forums | Help | Site Map

writeprotect a combobox.

J. Odgaard
Guest
 
Posts: n/a
#1: Nov 15 '05
Hi

I would like to prevent the user of my application from
writing in a combobox. The user should only be able to
select items from the combobox collection. I this
possible -am I using the wrong control for this?

thanx,
J of DK.


Bill Priess
Guest
 
Posts: n/a
#2: Nov 15 '05

re: writeprotect a combobox.


Nope.. you can set the property "DropDownStyle" to "DropDownList"...

HTH,

Bill P.

On Fri, 1 Aug 2003 09:07:50 -0700, J. Odgaard <jeodni@hotmail.com> wrote:
[color=blue]
> Hi
>
> I would like to prevent the user of my application from writing in a
> combobox. The user should only be able to select items from the combobox
> collection. I this possible -am I using the wrong control for this?
>
> thanx,
> J of DK.
>
>[/color]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Bill Priess
Guest
 
Posts: n/a
#3: Nov 15 '05

re: writeprotect a combobox.


Nope.. you can set the property "DropDownStyle" to "DropDownList"...

HTH,

Bill P.

On Fri, 1 Aug 2003 09:07:50 -0700, J. Odgaard <jeodni@hotmail.com> wrote:
[color=blue]
> Hi
>
> I would like to prevent the user of my application from writing in a
> combobox. The user should only be able to select items from the combobox
> collection. I this possible -am I using the wrong control for this?
>
> thanx,
> J of DK.
>
>[/color]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Frank Oquendo
Guest
 
Posts: n/a
#4: Nov 15 '05

re: writeprotect a combobox.


J. Odgaard wrote:[color=blue]
> Hi
>
> I would like to prevent the user of my application from
> writing in a combobox. The user should only be able to
> select items from the combobox collection. I this
> possible -am I using the wrong control for this?[/color]

Set the DropDownStyle property to ComboBoxStyle.DropDownList.

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com


Frank Oquendo
Guest
 
Posts: n/a
#5: Nov 15 '05

re: writeprotect a combobox.


J. Odgaard wrote:[color=blue]
> Hi
>
> I would like to prevent the user of my application from
> writing in a combobox. The user should only be able to
> select items from the combobox collection. I this
> possible -am I using the wrong control for this?[/color]

Set the DropDownStyle property to ComboBoxStyle.DropDownList.

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com


Closed Thread


Similar C# / C Sharp bytes