Customize html output of WebBrowser Control or Get Cursor Position

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top