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: 2141

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: 21340

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: 6847

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: 6847

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 add...
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: 6847

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) ...