Karen Wilson
asked on
How do I add a return carriage to a WPF ElementHost in a Windows Form?
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.Te xtBox()
CommentHost.SpellCheck.IsE nabled = True
CommentHost.VerticalScroll BarVisibil ity = ScrollBarVisibility.Visibl e
CommentHost.HorizontalScro llBarVisib ility = ScrollBarVisibility.Visibl e
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.
Thanks!
Dim CommentHost = New System.Windows.Controls.Te
CommentHost.SpellCheck.IsE
CommentHost.VerticalScroll
CommentHost.HorizontalScro
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.
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Have a great evening....