I am exploring the feasibility of embedding a LinkLabel control in a WebBrowser control. Could somebody tell me if is feasible or not?
If it is feasible, then how to im开发者_如何学运维plement it. Looking for code snippets.
~neerAJ
Not possible. A WebBrowser control displays HTML, it cannot contain any Winforms controls.
You could consider modifying the HTML with the WebBrowser.Document property, use the <a>
element. You can detect a click with the HtmlElement.Click event. You'd need to have a pretty good idea what the original HTML looks like to know where to insert the element.
精彩评论