Select item in the list box, countdown will automatically press button

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 10 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
winsoft
Posts: 24
Last visit: Sat May 29, 2021 4:59 am

Re: Select item in the list box, countdown will automatically press button

Post by winsoft »

Thank you for your help, the second question, the third question, has been resolved

Code: Select all

$timer1_Tick = {
	$label10.Text = $label10.Text - 1
	if ($label10.Text -eq -1)
	{
		$buttonOK.PerformClick()
	}
}

$form1_MouseEnter={
	$timer1.Stop()
}
winsoft
Posts: 24
Last visit: Sat May 29, 2021 4:59 am

Re: Select item in the list box, countdown will automatically press button

Post by winsoft »

Modify the code of the following post, the first question has been solved, thank you for your help

viewtopic.php?f=21&t=12043
This topic is 4 years and 10 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