Open more than one subform from main window ?
Open more than one subform from main window ?
Hi, I am currently making a 'Toolbox' which will contain several seperate tools that our sales organisation uses. This works fine - I simply open a subform when a button in the main window is clicked (using the 'call' command), but how do I make it possible to open more than one tool from the main window ? When a subform(a tool) is open, the main form is not usable(meaning that nothing happens when I click the buttons on the mian form). Best regardsKenneth
Open more than one subform from main window ?
Do to limitations in PowerShell, it only supports "Modal" Windows. Meaning the parent form is frozen until the other window closes. If you do not have any interactions between the forms, you could consider calling the form in a different runspace or try packaging each individual form and call the executable from the main script. David
davidc2012-03-26 10:09:55
davidc2012-03-26 10:09:55
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Open more than one subform from main window ?
Thanks David. I understand what you say about packaging each exe individually, but maybe a new runspace is the best for me.. I tried googling it - looks like 'start-job' is what I should use, but can that be used to call a form ?Kenneth2012-03-27 01:32:39
Open more than one subform from main window ?
Ok, I think I found a way. It doean't look as if I can call a form with start job, but if I export the form to PS1, and use the start job(after adding the PS1 file to the project), it seems to work. /Kenneth
Open more than one subform from main window ?
In Options->Designer check the "Export Form Script in a New Runspace" check box and export each individual form. Make sure you uncheck this option once you are done. But if Start-Job works, then you needn't bother with this setting. David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Open more than one subform from main window ?
Thanks again David.Start-job seemed to work, but if I closed the main form before the subform, the program crashed. Best regardsKenneth