Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Richtextbox align the property value

$
0
0

Hi

I am trying to display the eventlogs using the below wmi and diverting the output to the richtextbox. Everything is working perfectly. However if the message property value is long. It is messing the alignment.

gwmi win32_ntlogevent -filter "logfile ='application'" -computername $computer | select computername,sourcename,eventcode,Timegenerated,Message

I am getting the output as below if the message property value is long.

I want to align this message property correctly. So it should not be displayed below under computername property.


Viewing all articles
Browse latest Browse all 6937

Trending Articles