如何在我的 Windows 窗体应用程序的文本框中启用德语(实时)拼写检查?我已经尝试过了:
System.Windows.Controls.SpellCheck.SetIsEnabled(tb_HZ1, true);
其中 tb_HZ1 是我的文本框。但是我得到的只是以下错误消息:
Error 1 The best overloaded method match for 'System.Windows.Controls.SpellCheck.SetIsEnabled(System.Windows.Controls.Primitives.TextBoxBase, bool)' has some invalid arguments C:\Users\Andrej\documents\visual studio 2012\Projects\Fanreport Game Report Creator\Fanreport Game Report Creator\Form1.cs 15 13 Fanreport Game Report Creator
Error 2 Argument 1: cannot convert from 'System.Windows.Forms.TextBox' to 'System.Windows.Controls.Primitives.TextBoxBase' C:\Users\Andrej\documents\visual studio 2012\Projects\Fanreport Game Report Creator\Fanreport Game Report Creator\Form1.cs 15 61 Fanreport Game Report Creator