Hi, I am trying to open multiple forms from my main form in one go, like this:
Show-ChildForm1_pff
Show-ChildForm2_pff
…
Unfortunately, this doesn't work since the first form (ChildForm1) will be opened as a modal form and the call for ChildForm2 will be only called after ChildForm1 has been closed again.
Is this even possible?
The childforms should basically behave independently of the main form (there will be timers, grids etc that refresh the data in intervals)
PowerShell Studio 2017
non-modal forms
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: non-modal forms
Due to the limitations of PowerShell, having a non-modal dialog is not supported by PowerShell Studio.
Showing a non-modal dialog is possible, but you have to heavily modify the generated script so that everything is in a global scope. All the local form variables will go out-of-scope after the show function is called because the non-modal form returns immediately after calling the Show method.
Showing a non-modal dialog is possible, but you have to heavily modify the generated script so that everything is in a global scope. All the local form variables will go out-of-scope after the show function is called because the non-modal form returns immediately after calling the Show method.
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.