Search found 5 matches

by rkirchhof
Fri Apr 05, 2013 11:57 am
Forum: PowerShell GUIs
Topic: how do I programmatically close a form?
Replies: 1
Views: 1173

how do I programmatically close a form?

I've just learned how to open one with call-MyForm_pff, but how do I close it when I'm finished with it? me.close() aint it.
by rkirchhof
Fri Apr 05, 2013 11:50 am
Forum: PowerShell GUIs
Topic: Powershell cmd output to Textbox
Replies: 11
Views: 16632

Re: Powershell cmd output to Textbox

I had a situation where try catch wasn't working. Try putting

Code: Select all

$ErrorActionPreference = “Stop”
before the command. Here's where I found it.

http://www.codesmartnothard.com/2011/07 ... rking.aspx
by rkirchhof
Fri Apr 05, 2013 11:22 am
Forum: PowerShell GUIs
Topic: How do I add a line feed to a textbox control?
Replies: 4
Views: 2562

Re: How do I add a line feed to a textbox control?

ARRGGGG! I feel Soooo Stupid! Thanks' a bunch! Of course that did it.
by rkirchhof
Fri Apr 05, 2013 10:42 am
Forum: PowerShell GUIs
Topic: How do I add a line feed to a textbox control?
Replies: 4
Views: 2562

Re: How do I add a line feed to a textbox control?

Yes I did enable multiline. I just tried this too. $textbox2.AppendText(" Has no Proxy addresses.'r'n") Taken straight from the link above and this is the output. BEETRoot@cru.org Has no Proxy addresses.'r'npledgesupport@cru.org this is what I wish to see: BEETRoot@cru.org Has no Proxy addresses. pl...
by rkirchhof
Fri Apr 05, 2013 10:26 am
Forum: PowerShell GUIs
Topic: How do I add a line feed to a textbox control?
Replies: 4
Views: 2562

How do I add a line feed to a textbox control?

$buttonGetProxies_Click={ $file=$textbox1.text $List=Get-Content $file foreach ($User in $List){ $textbox2.Text = $Textbox2.text + ($User) $Data = (Get-Mailbox $User -ea silentlycontinue | select-object DistinguishedName -Expandproperty EmailAddresses | select Proxyaddressstring | ft | Out-String) ...