Customize html output of WebBrowser Control or Get Cursor Position

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I followed the following example to create an html text editor.

http://www.codeproject.com/useritems/editor_in_windows_forms.asp

It works great but when you press enter in the text box the control inserts
p tags instead of br tags. So you end up with double spacing throughout the
document. Is there any way to control what tags the browser generates or is
it possible to retrieve the cursor position? If I could get a hold of the
cursor position I could replace the /p with <br>. Any help would be greatly
appreciated.
 
Back
Top