0

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 implement it. Looking for code snippets.

~neerAJ

Neeraj
  • 592
  • 4
  • 6
  • 21
  • using c# to create a form with Webbrowser as a control, I am wondering if I could embed a LinkLabel control in the WebBrowser control which could be used to open other forms (and not urls) – Neeraj Dec 27 '10 at 18:37

1 Answers1

1

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.

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536