combobox control Read Only

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.
This topic is 4 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
adminmicro
Posts: 13
Last visit: Wed Dec 06, 2023 8:31 am

combobox control Read Only

Post by adminmicro »

Hello,

Is it possible to locked down the combobox control to not be editable, ie only readonly like a textbox control?
My datasource is a request of ActiveDirectory and use a Items.add

Thanks,
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: combobox control Read Only

Post by davidc »

Yes, you can. Just change the DropDownStyle property in the designer to DropDownList:
ComboBox- DropDownStyle.png
ComboBox- DropDownStyle.png (19.74 KiB) Viewed 1868 times
Here is the spotlight article on the combobox:

https://info.sapien.com/index.php/guis/ ... ox-control
David
SAPIEN Technologies, Inc.
User avatar
adminmicro
Posts: 13
Last visit: Wed Dec 06, 2023 8:31 am

Re: combobox control Read Only

Post by adminmicro »

Perfect ! Thanks for your help

Best Regards
This topic is 4 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked