Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add to webbrowser on return...

Status
Not open for further replies.

lidds

Programmer
Jun 9, 2005
72
GB
I have a WebBrowser control added to my form, which I am allowing users to create custom html email templates. The problem I have is that when you with the 'Return' key, the cursor jumps what looks like 2 lines. I've looked at the HTML behind it and it seems to add a <p> (Paragraph) item each time, whereas I would like a line break <br/> to be using when the return key is pressed.

I have looked around and am unable to find anything. Could someone help me to to override the KeyPress event on the WebBrowser and for a <br/> to be used instead of <p>. I know that the WebBrowser does not have a KeyPress event, hence I need some help on how to capture key presses.

Thanks in advance

Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top