ComboBox manual entry

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 1 year and 3 weeks 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
Brendan440
Posts: 5
Last visit: Mon Jan 29, 2024 5:09 am

ComboBox manual entry

Post by Brendan440 »

It is possible to get a value out of a comboBox if its one a user has inputted? I have data in the ComboBox, but every once in a while I might need a user to input their own value instead of one in the list. I see I can physically type in the comboBox, but I can't seem to find a way to get that data out of the object. Does anyone know if its possible?
User avatar
Lembasts
Posts: 405
Last visit: Wed Mar 20, 2024 1:40 pm
Has voted: 1 time
Been upvoted: 1 time

Re: ComboBox manual entry

Post by Lembasts »

Try $combobox1.text
this will contain whatever the user has entered
This topic is 1 year and 3 weeks 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