在Winform应用程序中向文本框添加拼写检查 [英] Adding spell check to textboxes in Winform app
问题描述
我是尝试在我的Windows窗体应用程序中的文本框中添加拼写检查。 I am
使用Visual Studio 2015 ,. net framework 4.5.2,一个Windows Forms项目和visual basic。 System.Windows.Controls应该有一个SpellCheck函数,但System.Windows.Controls甚至不能用于我。 它也不会出现在intellisense
中。 有人知道为什么吗?
谢谢! - 安迪
我正在尝试在我的Windows窗体应用程序中的文本框中添加拼写检查。System.Windows.Controls存在于WPF名称空间中。 如果这是一个WPF项目,那么您应该在WPF论坛中提问。 您可以通过托管WPF组件在Windows窗体文本框中实现拼写检查。请参阅:
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-wpf-composite-control-in-windows-forms
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
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:
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-wpf-composite-control-in-windows-forms
这篇关于在Winform应用程序中向文本框添加拼写检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!