Search found 149 matches

by clum09
Thu May 02, 2013 7:16 pm
Forum: PowerShell Studio
Topic: Get the form's executable path
Replies: 2
Views: 1552

Get the form's executable path

Hello,

Is there any way I can get the form's executable path?

I tried to use the following code, but it does not work.

[System.Windows.Forms.Application.StartupPath]

There may an assembly that I need to load, but I don't know how.

Thanks.
by clum09
Wed May 01, 2013 3:55 pm
Forum: PowerShell Studio
Topic: Load a second form as a splash screen
Replies: 13
Views: 12907

Re: Load a second form as a splash screen

Yes, the error does not occur when I use the ShowDialog method.
by clum09
Wed May 01, 2013 2:38 pm
Forum: PowerShell Studio
Topic: Load a second form as a splash screen
Replies: 13
Views: 12907

Re: Load a second form as a splash screen

David,

When I added the following line before the line that generated the error, then I don't get the error.

$ErrorActionPreference = "SilentlyContinue"
return $formSplash.Show()

However, I think there must be a better way to correct this problem.

Thanks.
by clum09
Wed May 01, 2013 2:28 pm
Forum: PowerShell Studio
Topic: Load a second form as a splash screen
Replies: 13
Views: 12907

Re: Load a second form as a splash screen

David, I got it working with the following script block, but the script generates an error when the splash form is closed. First I added a script block below in the splash form's User Generated Script section. $Close_Form={ sleep 3 $formSplash.Close() } Then I execute the above script block inside t...
by clum09
Wed May 01, 2013 11:46 am
Forum: PowerShell Studio
Topic: Load a second form as a splash screen
Replies: 13
Views: 12907

Re: Load a second form as a splash screen

David,

The problem I have right now is: how can I set a timer to wait for 3 seconds and then close the splash form.

Thanks.
by clum09
Wed May 01, 2013 10:44 am
Forum: PowerShell Studio
Topic: Load a second form as a splash screen
Replies: 13
Views: 12907

Re: Load a second form as a splash screen

David, Below is the code I have so far. This code works, but I don't know how to set the timer for the splash form to open for 3 seconds and then close the splash form. While the Splash form is open, I also want to disable the main form and the Exit button on the main form. After the splash form clo...
by clum09
Tue Apr 30, 2013 5:26 pm
Forum: PowerShell Studio
Topic: Load a second form as a splash screen
Replies: 13
Views: 12907

Re: Load a second form as a splash screen

David, I made a splash form, exported it to a ps1 file, copied the code to place on top of the main form's code. I changed the $form1.ShowDialog() of the splash form to $form1.Show(). I called the splash form from the script block of the main form like: $FormEvent_Load={ Call-Splash_pff | Out-Null }...
by clum09
Tue Apr 30, 2013 11:09 am
Forum: PowerShell Studio
Topic: Load a second form as a splash screen
Replies: 13
Views: 12907

Re: Load a second form as a splash screen

Davidc, Thank you for the response. I created a splash form, exported it to a ps1 script. Then copied the form code to put in the main form, but I don't know where to a have a while loop for the main form to wait for the splash form to load for 3 seconds and then closes the splash form and make the ...
by clum09
Mon Apr 29, 2013 2:37 pm
Forum: PowerShell Studio
Topic: Load a second form as a splash screen
Replies: 13
Views: 12907

Load a second form as a splash screen

Hello, I am wondering if there is a way to have two forms in Windows.Forms.Form object in one PowerShell script where a splash screen form loads before the main form so that I can produce a splash screen for the application before the main form application loads? Something like having the main form ...
by clum09
Fri Apr 26, 2013 12:21 pm
Forum: PrimalScript
Topic: Change font and font size in PrimalScript 2012
Replies: 3
Views: 5137

Re: Change font and font size in PrimalScript 2012

Alexander,

Yes, I can find it now. The GUI actually changed a lot for this new version.

Thanks.