The form has 3 WebBrowser controls and I need to know which one originated the event.
I try using the ClientMousePosition property of HtmlElementEventArgs to get the click point, but the compiler says:
<'EventArgs' does not contain a definition for 'ClientMousePosition' and no accessible extension method 'ClientMousePosition' accepting a first argument of type 'EventArgs' could be found (are you missing a using directive or an assembly reference?)'>
although I can see it in the debugger.
private void browser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
brRList.Document.Click += new HtmlElementEventHandler(this. DocLinkClick);
...
}
private void DocLinkClick(object sender, System.EventArgs e)
{
Point ClickPt = ClientMousePosition;
...
}
What is wrong?