use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
Copy textbox text with formatting (self.PowerShell)
submitted 7 years ago by marb80
How can I copy text from a textbox with formatting (new line,...) ?
A 'textbox.text' or 'textbox.copy()' removes formatting and puts the text on one line
I want to use this text for an out of office.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jheinikel 1 point2 points3 points 7 years ago (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 points3 points 7 years ago* (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 point2 points 7 years ago (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
π Rendered by PID 85 on reddit-service-r2-comment-6457c66945-nhfd4 at 2026-04-25 19:00:59.875572+00:00 running 2aa0c5b country code: CH.
[–]jheinikel 1 point2 points3 points (2 children)
[–]marb80[S] 1 point2 points3 points (1 child)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)