开发者

How to embed a LinkLabel control in a WebBrowser control?

开发者 https://www.devze.com 2023-02-01 03:09 出处:网络
I am exploring the feasibility of embedding a LinkLabel control in a WebBrowser control. Could somebody tell me if is feasible or not?

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

精彩评论

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