RichTextBox formatting

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
tonyf
Posts: 12
Joined: Mon Aug 30, 2010 11:59 pm

RichTextBox formatting

Post by tonyf »

Hi

When I populate a rich textbox the columns won't line up.

Here's my code:
$Output=Get-Process | Out-String$TB_Output.Text = $Output


Results:
Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName
------- ------ ----- ----- ----- ------ -- -----------
140 5 4484 9852 46 15.70 2940 Acrotray
128 4 1888 5592 40 4.06 3860 AeXAgentUIHost
1131 23 301472 15068 593 3,038.27 1744 AeXNSAgent

I've also tried variations of the Format command. I was thinking maybe it could be one of the settings on the form in primal?

Regards,

Tony

User avatar
tonyf
Posts: 12
Joined: Mon Aug 30, 2010 11:59 pm

RichTextBox formatting

Post by tonyf »

That did the trick. Thanks so much for your help!

Regards,

Tony

Locked