Search found 15 matches
- Mon Apr 05, 2021 11:48 pm
- Forum: PowerShell GUIs
- Topic: WebBrowser localstorage has been disable issue.
- Replies: 4
- Views: 2333
Re: WebBrowser localstorage has been disable issue.
Thanks for your reply! The issue is resolved. I found that is caused by Test-Connection. I try to use Test-Connection to test server connection before I submit an Invoke-Command job. Don't know why this CMDLET will cause this issue. Once I remove the Test-Connection. Issue has gone. Now I changed to...
- Thu Mar 25, 2021 8:15 am
- Forum: PowerShell GUIs
- Topic: WebBrowser localstorage has been disable issue.
- Replies: 4
- Views: 2333
WebBrowser localstorage has been disable issue.
Hi all, I create a GUI tools which has a web browser to browse a URL which is a web app own by IIS. It works fine in my last project. I will call this app as version 1. But I recently create another GUI tools to browse the same URL. This is the version 2. Now in version 2, It said my browser has dis...
- Wed Mar 25, 2020 10:42 pm
- Forum: PowerShell GUIs
- Topic: How to prevent child form closing after click on a button in child form.
- Replies: 8
- Views: 3978
- Wed Mar 25, 2020 10:40 pm
- Forum: PowerShell GUIs
- Topic: How to prevent child form closing after click on a button in child form.
- Replies: 8
- Views: 3978
Re: How to prevent child form closing after click on a button in child form.
You cannot both close a child form and keep it open. When you close the form it closes and control is returned to the parent form. There is no other option. Seems I found a better solution here. # set difference value for DialogResult $btnSettingOK_Click={ Set-Settings $frmSettings.DialogResult = '...
- Wed Mar 25, 2020 10:32 pm
- Forum: PowerShell GUIs
- Topic: How to prevent child form closing after click on a button in child form.
- Replies: 8
- Views: 3978
Re: How to prevent child form closing after click on a button in child form.
You cannot both close a child form and keep it open. When you close the form it closes and control is returned to the parent form. There is no other option. I'm not close the child form in my code. I have 3 buttons in this child form, just don't know why all these button will close the form even th...
- Wed Mar 25, 2020 10:10 pm
- Forum: PowerShell GUIs
- Topic: How to prevent child form closing after click on a button in child form.
- Replies: 8
- Views: 3978
Re: How to prevent child form closing after click on a button in child form.
You cannot return a value like that from a child form. Use the global variables created by child forms. See: https://info.sapien.com/index.php/guis/gui-scripting/powershell-studio-passing-and-returning-values-using-forms Thanks for your reply. But what I'm care about is not the return value. I just...
- Wed Mar 25, 2020 7:52 pm
- Forum: PowerShell GUIs
- Topic: How to prevent child form closing after click on a button in child form.
- Replies: 8
- Views: 3978
How to prevent child form closing after click on a button in child form.
Hi everyone here, I just created a multi-form project. A child form used for load settings and change program running settings. There are 3 buttons in this child form. Which are 'Reset default', 'OK', and 'Cancel'. Both 3 buttons are corresponding to call a function to do something. But don't know w...
- Tue Feb 25, 2020 9:00 pm
- Forum: PowerShell GUIs
- Topic: Sometimes control responds event twice.
- Replies: 4
- Views: 2265
Re: Sometimes control responds event twice.
This can only happen if you have an error in your code. I cannot see your code so there is no way to help you with this. Each control I added only one in designer, but don't know why it added twice after deployed. I use cygwin grep to find out which control have been added twice after deployed here...
- Tue Feb 25, 2020 8:52 pm
- Forum: PowerShell GUIs
- Topic: Sometimes control responds event twice.
- Replies: 4
- Views: 2265
Re: Sometimes control responds event twice.
There is no reason for this. PowerShell Studio does not support WPF so you must have had coded it. I suspect you are adding the click event twice in your code. Thanks for you reply! I added only one button and one click event in my code. But don't know why it will have twice after deployed. I can f...
- Tue Feb 25, 2020 8:32 pm
- Forum: PowerShell GUIs
- Topic: Sometimes control responds event twice.
- Replies: 4
- Views: 2265
Sometimes control responds event twice.
Good day, everyone here. I use PowerShell Studio 2019 5.6.160.0 to create a WPF project. I found sometimes a control will responds event twice. For example, I have a button. Added click event for it. Event to show a message, when I run and click on this button. Don't know why message shown twice. I ...