The only constraint is that you cannot create an event of the webbrowser control.
And just for the records,
Point p = Mouse.GetPosition(webBrowser1);
is not working !
Point p = Mouse.GetPosition(webBrowser1);
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Darshan UnadkatPosted Jul 11, 2012, 8:27 AM
Try bellow code :
Point p = this.PointFromScreen(Mouse.GetPosition(this));
this should sort out your problem. Also you need to set the Security to Full Trust Application as you are trying to access the Mouse location from client machine.
Regards,
Darshan Unadkat.