Search found 9 matches

by EnergySmithe
Thu Dec 13, 2018 1:13 pm
Forum: Windows PowerShell
Topic: Self-Updating Powershell Windows Service?
Replies: 3
Views: 878

Re: Self-Updating Powershell Windows Service?

The problem would be the same... once it is installed, we do not want to have an admin log into every machine and run something with elevated permissions every time we have an update. In our case we never had to /u then /i the service, we left it registered, stopped the service, copied the files ove...
by EnergySmithe
Thu Dec 13, 2018 11:48 am
Forum: Windows PowerShell
Topic: Self-Updating Powershell Windows Service?
Replies: 3
Views: 878

Self-Updating Powershell Windows Service?

In my Powershell based utilities I have auto-update built in, so that it updates itself from a network share. It does this with a /version flag which returns the current version string and exits - that is called on a UNC shared copy to determine if it needs to update. I recently did a short term pro...
by EnergySmithe
Tue Oct 24, 2017 2:55 pm
Forum: PowerShell GUIs
Topic: Embedding a form in a form
Replies: 18
Views: 3407

Re: Embedding a form in a form

Thank you again jvierra, this is very helpful!
by EnergySmithe
Mon Oct 23, 2017 2:28 pm
Forum: PowerShell GUIs
Topic: Embedding a form in a form
Replies: 18
Views: 3407

Re: Embedding a form in a form

jvierra, thank you for this excellent example, this is really helpful!
by EnergySmithe
Mon Oct 23, 2017 1:25 pm
Forum: PowerShell GUIs
Topic: Embedding a form in a form
Replies: 18
Views: 3407

Re: Embedding a form in a form

So while I am able to attach the form as an MDI child, I am still running into code behind control referencing/scoping issues. If I create a simple form with a label and button and put $label1.text = "Hello World!" as the click event for the button, when I load it as an MDI child and click the butto...
by EnergySmithe
Mon Oct 23, 2017 7:23 am
Forum: PowerShell GUIs
Topic: Embedding a form in a form
Replies: 18
Views: 3407

Re: Embedding a form in a form

That is brilliant, thank you JV!
by EnergySmithe
Mon Oct 23, 2017 6:48 am
Forum: PowerShell GUIs
Topic: Embedding a form in a form
Replies: 18
Views: 3407

Re: Embedding a form in a form

So you have many directions to go in - all with drawbacks. Isn't development always like that? I would choose to build a program that edits the PSS generated script to turn it into an MDI child. Wow thank you jvierra! I agree that writing a script to turn the generated form into an MDI would be the...
by EnergySmithe
Thu Oct 19, 2017 10:47 am
Forum: PowerShell GUIs
Topic: Embedding a form in a form
Replies: 18
Views: 3407

Re: Embedding a form in a form

jvierra and David, thank you both for your responses! My underlying goal with this is to break out development of individual pieces of a single GUI tool, so that they can be worked on independently without having to re-integrate changes into a single project constantly. MDI and child forms was a gre...
by EnergySmithe
Wed Oct 18, 2017 8:14 am
Forum: PowerShell GUIs
Topic: Embedding a form in a form
Replies: 18
Views: 3407

Embedding a form in a form

I would like to implement the equivalent of a tabbed MDI in Powershell Studio. In C# I could approximate this by adding a tab to a tab control and adding the form to the controls collection in the new tab (with the form set to no border and dock set to fill, etc). Is there a way to accomplish the sa...