In powershell, click
If you do $form.ShowDialog(), the process will stop completely.
How do I process Write-Host "hoge" one second after ShowDialog?
Shall we?
When I used Show() instead of ShowDialog, the form window froze.
·What you want to do
Show the main form and display hoge on the console after 1 second.
In particular, WinForms recommends that you implement it with C# before porting it to PowerShell instead of trying and trying PowerShell out of the blue.
Form.Show()
and Form.ShowDialog()
are mentioned in this question, but if implemented with C#, the Main()
method in Program.cs
will be
Application.Run(newForm1());
You should be aware that PowerShell also needs to write the corresponding action, and you should be able to understand that this line does not return the form until it is closed.
Show the main form and display hoge on the console after 1 second.
As mentioned above, you will need to print using one of the methods in the form.
571 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
910 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
572 Who developed the "avformat-59.dll" that comes with FFmpeg?
616 Uncaught (inpromise) Error on Electron: An object could not be cloned
609 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.