Search found 13800 matches

by jvierra
Fri Oct 18, 2019 9:59 am
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 18
Views: 143

Re: Modal forms

Yes
by jvierra
Thu Oct 17, 2019 12:04 pm
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 18
Views: 143

Re: Modal forms

I modified the example to demonstrate how to communicate with a form via the synchash. It shows two methods for altering the a second main form from the creating form. I use the name "Parent" in the synchash but the form is not a true "Parent" as defined by the form's "Parent" property but it does p...
by jvierra
Thu Oct 17, 2019 10:00 am
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 18
Views: 143

Re: Modal forms

Yes - that form is NOT a modal form. It is a form running in a separate runspace. The only way to access the form is to modify variables in the synchash and have to child form detect when the variable is modified.
by jvierra
Thu Oct 17, 2019 9:29 am
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 18
Views: 143

Re: Modal forms

What code is mine?
by jvierra
Thu Oct 17, 2019 9:20 am
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 18
Views: 143

Re: Modal forms

Without you code it is not possible to understand the issue. The child form is clearly NOT a modal form. It is either launched in a separate runspace or launched using a couple of other little known tricks that allow "modeless" forms. These tricks do not work correctly with forms in PowerShell but c...
by jvierra
Wed Oct 16, 2019 2:06 pm
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 18
Views: 143

Re: Modal forms

That demo does not allow access to the main form while the modal child is displayed so it is not possible to understand what you are getting at.
by jvierra
Wed Oct 16, 2019 10:43 am
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 18
Views: 143

Re: Modal forms

You would have to provide an example of the code that does this. If the child is started from a button then the main form will not be accessible.
by jvierra
Wed Oct 16, 2019 10:26 am
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 18
Views: 143

Re: Modal forms

You can't. The main form is frozen while the child is displayed.
Why is this necessary?
by jvierra
Wed Oct 16, 2019 10:20 am
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 18
Views: 143

Re: Modal forms

There is no direct way to do this as a modal form is just that - it is modal to the form that creates it. All code in the main form is frozen until the child form is closed.
Why do you think you need to do this.
by jvierra
Wed Oct 16, 2019 9:55 am
Forum: PowerShell GUIs
Topic: Forms and Invoke-VMScript
Replies: 1
Views: 50

Re: Forms and Invoke-VMScript

Just assign the results to a variable.