I'm using the Windows.Forms WebBrowser control in edit mode to enable html editing in our application (.net 3.5 C# windows forms). The problem is that in edit mode, the links in the html are not clickable (i.e. hovering over them does not show the hand mouse cursor, and click them just inserts the cursor at that spot, rather than navigating to that link).
I realize that this is by design, but is it possible to enable edit mode while keeping the links functional? We want the user to navigate around a set of local html pages while able to edit the content.
I'm setting edit mode like this, if its changes anything:
webBrowser.Document.ExecCommand("EditMode", false, null);
Best Answer
Here's a small WinForm App which seems to work. When setting the edit mode it record all the link positions of all A tags and then check the cursor position of the mouse. I'm not sure if OffsetRectangle gives correct values if there is frames or nesting of tags, but the sample html in the app works.
It could be modified to capture onclick etc from other tags if needed.