Search found 252 matches

by mqh77777
Wed Oct 15, 2014 8:59 am
Forum: PowerShell GUIs
Topic: Window Title ??
Replies: 10
Views: 11771

Re: Window Title ??

that worked...thank you :D
by mqh77777
Wed Oct 15, 2014 8:05 am
Forum: PowerShell GUIs
Topic: Window Title ??
Replies: 10
Views: 11771

Re: Window Title ??

Why are you trying to assign all of those things to the time display? Why not just assign one thing at a time instead of in a cascade. This is something that I thought would be pretty easy and it's turning out to be an issue. I am writing a reboot utility for our company. I need this to run at log ...
by mqh77777
Wed Oct 15, 2014 7:42 am
Forum: PowerShell GUIs
Topic: Window Title ??
Replies: 10
Views: 11771

Re: Window Title ??

ok, so I've put a comment in front of this line. # $formMGHREBOOTUTILITY.Text = $labelTime.Text = "{0:N0}" -f $span.TotalSeconds and when I run it the Windows Title says "MGH Reboot Utility" but I no longer see any countdown happening. How do I see my countdown yet still see the ...
by mqh77777
Mon Oct 13, 2014 10:11 am
Forum: PowerShell GUIs
Topic: Window Title ??
Replies: 10
Views: 11771

Window Title ??

I have this code that works. But when this code runs there is no "Window Title" but instead you actually see the 300 second count down as the Window Title name. How do I prevent that? I want the Window Title to be what is defined under Design\Appearance\Font\Text . # This will create a cou...
by mqh77777
Thu Oct 09, 2014 1:22 pm
Forum: PowerShell GUIs
Topic: how to lock windows within studio?
Replies: 2
Views: 1564

Re: how to lock windows within studio?

that was it....thank you!!
by mqh77777
Thu Oct 09, 2014 12:51 pm
Forum: PowerShell GUIs
Topic: how to lock windows within studio?
Replies: 2
Views: 1564

how to lock windows within studio?

When I'm in the PowerShell Studio in design mode on the right hand side of the screen are my properties. When I switch to the Script mode I see my functions and snippets on the right side of the screen. I've pulled these side windows out towards the center of the screen to make them bigger but when ...
by mqh77777
Wed Oct 08, 2014 7:52 am
Forum: PowerShell GUIs
Topic: can't download sample program
Replies: 12
Views: 8100

Re: can't download sample program

You wrote:

1. place timer on form.
2. set time values
3. create event for the tick by clicking on the time. - Not sure what you mean by this?
4. place code to update screen value with time value on each tick.
by mqh77777
Tue Oct 07, 2014 1:27 pm
Forum: PowerShell GUIs
Topic: can't download sample program
Replies: 12
Views: 8100

Re: can't download sample program

I have 2 programs. Program One: has no dialogs. It checks to see if your machine has been up for 7 days. If you have not rebooted in 7 days or more Program Two gets called. Program One will get launched either via Scheduled Task or at Logon Via Group Policies. Program Two: This has 2 buttons. Delay ...
by mqh77777
Tue Oct 07, 2014 12:31 pm
Forum: PowerShell GUIs
Topic: can't download sample program
Replies: 12
Views: 8100

Re: can't download sample program

Question, why can't you put a start-sleep in a form? It seems to work fine. In fact within another form I have this line of code: if ($GetBootValue1 = '1') { remove-itemproperty -path HKLM:\Software\MGH -name OneHour | start-sleep -s 3600 | shutdown.exe /r /f /t 180 /c "Your computer will be re...
by mqh77777
Tue Oct 07, 2014 10:44 am
Forum: PowerShell GUIs
Topic: can't download sample program
Replies: 12
Views: 8100

Re: can't download sample program

Thank you. That time control script works as expected but when I try to merge that logic with my existing code it does not work. What is interesting is the following code complies and runs without error, but I never see my countdown. Any hints of why/where my code is wrong? $FormEvent_Load = { #TODO...