Spell Checking for Rich Textbox

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 1 year and 3 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
MThomas
Posts: 4
Last visit: Thu Mar 14, 2024 11:17 pm

Spell Checking for Rich Textbox

Post by MThomas »

Product, version and build: 5.8.213
Operating system: Windows 10 21H2
PowerShell version(s): 5.1.19041.1682

Is there any way to add a spell-checking function to the rich textbox control?
I know you can do it with c# rich textbox control. Just trying to figure out how we can add spell check to PowerShell Rich Textbox control.
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 3:14 pm
Answers: 39
Been upvoted: 30 times

Re: Spell Checking for Rich Textbox

Post by brittneyr »

[Topic was moved to PowerShell GUIs forum]
Brittney
SAPIEN Technologies, Inc.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Spell Checking for Rich Textbox

Post by jvierra »

The RTB control works the same way in C# and PowerShell. The RTB used in C# WinForms does not do spellchecking. You can use the WPF RTB with the Microsoft SpellCheck class but it takes advanced programming skills.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Spell Checking for Rich Textbox

Post by jvierra »

Here is an article that shows how to add SpellCheck to a WPF control and use it in WinForms.

https://stackoverflow.com/questions/181 ... on-textbox
This topic is 1 year and 3 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