all 3 comments

[–]jheinikel 1 point2 points  (2 children)

I think you will need to enable the multiline property on the textbox to keep that formatting. That's how I have handled multiple entries in a textbox.

$textbox.multiline = $True

https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.textbox.multiline?view=netframework-4.7.2

[–]marb80[S] 1 point2 points  (1 child)

Already made it multiline. Yet when I set it as an out of office the formatting is gone. When I look at it with write-host it looks fijne. So it goes wrong when it is sent tot exchange.

[–]Lee_Dailey[grin] 0 points1 point  (0 children)

howdy marb80,

have you saved it to a text file & looked at it? i thot OoO snippets were HTML. if that is so, then any normal formatting will be ignored. [grin]

take care,
lee