Different button action on second click

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 3 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
sergioCpE
Posts: 1
Last visit: Fri May 15, 2020 5:14 am

Different button action on second click

Post by sergioCpE »

I am creating a GUI script that walks the user thru several subsequent steps, each step is a button. I have a "next" button to let the user go from button to button in the right order, but my challenge is how to I tell the button to do a different event on a second, third or four click?
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Different button action on second click

Post by jvierra »

What you are asking is not clear. If you have buttons the why a "next" button? Just let the user click the buttons in order.

You can also use the template that does all of this for you. It is called the "Wizard Style" form template.
2020-04-26.png
2020-04-26.png (51.56 KiB) Viewed 683 times
This topic is 3 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