GUI doesn't start, please help!

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 1 month 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
stevens
Posts: 493
Last visit: Mon Sep 19, 2022 12:23 am
Has voted: 2 times

GUI doesn't start, please help!

Post by stevens »

Hi,

I was working in a production GUI, made some modifications, then tried to start the project (as I did many times) but suddenly the project just don't start(!) No warning, erros or whatsoever.
Reverted the changes I did, rebooted the computer, but nothing happens. The forms in my project do start seperately, but the project does not start.
Maybe there is something wrong in the startup.pss but haven't changed anything there.

Please help!

Note: must be something in startup.pss because if I try to add breakpoint in startup.pss, it doesnt stop there.
The project is running but GUI does not appear.
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: GUI doesn't start, please help!

Post by Alexander Riedel »

Unless you upload / attach your project here, nobody can look what's wrong.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
stevens
Posts: 493
Last visit: Mon Sep 19, 2022 12:23 am
Has voted: 2 times

Re: GUI doesn't start, please help!

Post by stevens »

Thanks a lot for your quick reply. It appeared the GUI was executing a script myscript.ps1, but I did not had any reference to it @start.
Removed the script and everything fine again. Not sure what was going on, but solved :-)
This topic is 4 years and 1 month 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