Combobox - Readonly Property Possible?

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
angelofstealth
Posts: 67
Joined: Wed Feb 13, 2013 4:26 pm

Combobox - Readonly Property Possible?

Post by angelofstealth »

Is it possible to locked down the combobox control to not be editable, ie only readonly like a textbox control? Only want the user to select an item from the dropdown, not allowed to delete the value selected/be null once selected. I didn't see this was an option in the control properties window, wondering if this is possible. Thanks,

jvierra
Posts: 14553
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Combobox - Readonly Property Possible?

Post by jvierra »

Look more closely at the options. Set it to only take entries from the list. It will then not be editable.

User avatar
MarvelManiac
Posts: 63
Joined: Mon May 01, 2017 8:28 pm

Re: Combobox - Readonly Property Possible?

Post by MarvelManiac »

That's a very good hint J gave you :D
It's 100% there

User avatar
angelofstealth
Posts: 67
Joined: Wed Feb 13, 2013 4:26 pm

Re: Combobox - Readonly Property Possible?

Post by angelofstealth »

figured it out, thanks

User avatar
MarvelManiac
Posts: 63
Joined: Mon May 01, 2017 8:28 pm

Re: Combobox - Readonly Property Possible?

Post by MarvelManiac »

Good work

Locked