I needed to add spell check to a windows form textbox so I used the add a WPF Interoperability, ElementHost option. I added this code.
Dim CommentHost = New System.Windows.Controls.TextBox()
CommentHost.SpellCheck.IsEnabled = True
CommentHost.VerticalScrollBarVisibility = ScrollBarVisibility.Visible
CommentHost.HorizontalScrollBarVisibility = ScrollBarVisibility.Visible
CommentHost.TextWrapping = TextWrapping.Wrap
Me.hostBox.Child = CommentHost
I have everything working very nice - saving to tables, loading edit screens until I hit the return key to add another line... Doh, nothing happens!
Any suggestions? My users add several "one-liners" to their activity report and this is a must-have.