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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Darshan Unadkat7 reputationPosted Jul 11, 2012, 4:27 AM EDT
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.