Powershell adding action to combobox selection

Mitglied: natalie.solero
at the moment, i want to build a powershell gui. the form is running fine, so there are no problems with it. now i want to add an event for my selection, for example starting another script choosing "item1" and another script choosing "item2" and so on. how can i achieve that? thanfs for any help. how can i add a second combobox? This is what i have actually.


Content-Key: 661830

Url: https://administrator.pro/contentid/661830

Printed on: September 23, 2021 at 11:09 o'clock

Mitglied: 147669
147669 Mar 12, 2021 updated at 17:03:20 (UTC)
Goto Top

Mitglied: natalie.solero
natalie.solero Mar 15, 2021 at 07:27:18 (UTC)
Goto Top
hi @147669,
many thanks for your response. In the meantime I've also tried to continue. I think everything works so far. maybe you can help me again. i want the program to remain open according to choice. this is what i have

Mitglied: 147669
Solution 147669 Mar 15, 2021 updated at 16:52:11 (UTC)
Goto Top
No big problem, just place the switch condition directly inside the OK Button-Click Event and do "not" set AcceptButton Property (which would normaly close the form automatically), then the form remains open until you either close the form by the x or the cancel button.

Finally please mark the thread as "solved", thanks.

Regards SK
Mitglied: natalie.solero
natalie.solero Mar 18, 2021 at 14:24:23 (UTC)
Goto Top
Nn the meantime i managed it too. Nevertheless many thanks.
Mitglied: 147669
147669 Mar 18, 2021 updated at 14:44:32 (UTC)
Goto Top
Zitat von @natalie.solero:

Nn the meantime i managed it too.
Well, but why posting threads when you do it yourself anyway ... ?? 🐟