开发者

How to embed a LinkLabel control in a WebBrowser control?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜