הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
Question
Saturday, March 3, 2018 10:06 PM
I am trying to add spell checking to text boxes in my Windows Forms app. I am using Visual Studio 2015, the .net framework 4.5.2, a Windows Forms project and visual basic. System.Windows.Controls is supposed to have a SpellCheck function but System.Windows.Controls isn't even available to me. It does not show up in intellisense either. Anyone know why?
Thank You! - Andy
All replies (7)
Saturday, March 3, 2018 10:26 PM | 1 vote
I am trying to add spell checking to text boxes in my Windows Forms app.
System.Windows.Controls exists in the WPF namespace. If this is a WPF project then you should ask in the WPF forum. You can implement spell checking in a windows forms text box by hosting the WPF component. See:
/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-wpf-composite-control-in-windows-forms
Saturday, March 3, 2018 10:26 PM | 1 vote
Hello Andy,
It's only available for WPF project/apps.
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
VB Forums - moderator
Saturday, March 3, 2018 10:40 PM | 1 vote
I located a custom TextBox that does this created in C#. You add the ExtendedTextBox project to your Visual Studio solution, build the project and the new control will appear at the top of your toolbox. Add one to your form, build and then try it by misspelling a word.
The original code where the solution was messed up and I fixed it and placed it on my One Drive.
My simple demo with zero code.
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
VB Forums - moderator
Sunday, March 4, 2018 1:57 AM | 2 votes
Please see this thread Spell checking a plain TextBox as hosting a WPF TextBox in a Windows Forms app is pretty simple.
La vida loca
Friday, March 15, 2019 6:42 PM
I've created a VB.Net 2010 Class as a wrapper for a WPF TextBox control. The class project (.sln) is added to your WinForms project and then the control shows up in the toolbox. I've zipped it into a compressed folder but see no way to attach it here......
Friday, March 15, 2019 7:43 PM
Hi
There is no provision for attachments in the forum. To share, use (say) One Drive and post the link in the forum.
Regards Les, Livingston, Scotland
Friday, April 26, 2019 11:33 AM
I know this is an old thread, but hoping its still got some life.
Nice little demo, thanks for that but how would I get the events to fire?
e.g. KeyPress and many other events don't fire.
Thanks
Sam