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.
This topic is 11 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
tonyf
Posts: 12
Last visit: Fri May 03, 2013 9:57 am

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
Last visit: Fri May 03, 2013 9:57 am

RichTextBox formatting

Post by tonyf »

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

Regards,

Tony
This topic is 11 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked