Proper Format

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
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 months and 4 weeks 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
mqh77777
Posts: 252
Last visit: Mon Feb 26, 2024 10:07 am
Has voted: 1 time

Proper Format

Post by mqh77777 »

I am using a richtext output window. I am getting 2 elements of data from the local WMI and when it displays in the richtext box it is not aligned correctly.

I probably missed it but is there a setting for the best format of your output? I've added 2 screenshots. The PS screen is how I need it to look.

Thank you.
Attachments
NeedsToLookLikeThis.png
NeedsToLookLikeThis.png (26.43 KiB) Viewed 865 times
Sensor.png
Sensor.png (9.14 KiB) Viewed 865 times
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Proper Format

Post by jvierra »

You have to use a fixed font and not one of the modern fonts that adjust font spacing on a per letter basis.

I use "Lucida Console" as a fixed font.
This topic is 11 months and 4 weeks 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