Search found 21 matches

by Swatto86
Sun Oct 04, 2015 1:52 pm
Forum: PowerShell Studio
Topic: Custom Drawing - Powershell Studio?
Replies: 1
Views: 1374

Custom Drawing - Powershell Studio?

Good Evening,

Is it possible to custom draw with an OnPaint method or something similar in Powershell Studio? or can we only use the WinForms controls available in the toolbox?

Thanks
by Swatto86
Sun Oct 04, 2015 3:06 am
Forum: PowerShell Studio
Topic: Connecting to Office 365/MSOnline...
Replies: 2
Views: 1321

Re: Connecting to Office 365/MSOnline...

Good Morning,

The script is run as an executable forms application. I guess I can use the $ConsoleOutput variable.

Thanks very much.
by Swatto86
Sat Sep 26, 2015 1:20 pm
Forum: PowerShell Studio
Topic: Connecting to Office 365/MSOnline...
Replies: 2
Views: 1321

Connecting to Office 365/MSOnline...

Good Evening,

Is it possible to show the output in my GUI that happens when I make the connection to Office 365.

If I run the command in a powershell console window I get the output about connection and loading cmdlets but I do not get this in the GUI.

Is this possible please?
by Swatto86
Tue Jun 09, 2015 9:10 pm
Forum: PowerShell GUIs
Topic: Get powershell function output?
Replies: 3
Views: 1155

Re: Get powershell function output?

Cheers found a great article on that blog section.
by Swatto86
Tue Jun 09, 2015 2:56 pm
Forum: PowerShell GUIs
Topic: Get powershell function output?
Replies: 3
Views: 1155

Get powershell function output?

Hello all, I have a form that runs a number of powershell functions but I do not know how to display the console output of what happens when the function runs in a label control on my form? I can see the text within 'Output' in the IDE but when I build my app if a function has an error during execut...
by Swatto86
Fri Jun 05, 2015 12:21 am
Forum: PowerShell GUIs
Topic: Function causes form to freeze and label not to update.
Replies: 10
Views: 2393

Re: Function causes form to freeze and label not to update.

Thanks very much for the clarification, I understand now. I was getting confused as I associated the text property with the combo box control so was thinking of it as a property of a property if that makes sense instead of seeing text as it's own type of object (a string).
by Swatto86
Thu Jun 04, 2015 4:39 pm
Forum: PowerShell GUIs
Topic: Function causes form to freeze and label not to update.
Replies: 10
Views: 2393

Re: Function causes form to freeze and label not to update.

Swatto86 wrote:I thought .Text was the property though? Is it like a sub property
Ahh I think I understand, the length property is inherited from another control so it can be used in the combo box class.
by Swatto86
Thu Jun 04, 2015 4:14 pm
Forum: PowerShell GUIs
Topic: Function causes form to freeze and label not to update.
Replies: 10
Views: 2393

Re: Function causes form to freeze and label not to update.

I thought .Text was the property though? Is it like a sub property
by Swatto86
Thu Jun 04, 2015 3:38 pm
Forum: PowerShell GUIs
Topic: Function causes form to freeze and label not to update.
Replies: 10
Views: 2393

Re: Function causes form to freeze and label not to update.

jvierra wrote:Have you tried:
$label1.Refresh()
Excellent, that worked. Thanks very much.

Do you know why sometimes I have to specify a method like this:

$label1.Refresh()

but other times I can just use

$cboSourceMailbox.Text.Length?
by Swatto86
Thu Jun 04, 2015 2:28 pm
Forum: PowerShell GUIs
Topic: Function causes form to freeze and label not to update.
Replies: 10
Views: 2393

Function causes form to freeze and label not to update.

Good Evening, I have got an issue with a click event that runs a function - I would like the click event to update a label on my form before running the function as the function takes a while to run and causes my form to freeze. Is there a way I can force a form refresh before the function runs?: $b...