Click here to Skip to main content
11,930,217 members (46,725 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# webbrowser
Hi i have a c# application and an embedded browser in it.
Its task is to find a link and then right click on it and click on properties! mouse moves programmatically so i need to find properties in righ click menu! Can you help me how to do this? I tried pressing 'r' after right click, but it didn't work on some computers! So i need to do it by moving mouse! Here is my code for finding a link and right clicking:
int x = getXoffset(link);
int y = getYoffset(link);
webBrowser1.Document.Window.ScrollTo(x, y);
Linker.Win32.POINT p2 = new Linker.Win32.POINT();
p2.x = webBrowser1.Left + 10;
p2.y = webBrowser1.Top + 5;
Linker.Win32.ClientToScreen(this.Handle, ref p2);
Linker.Win32.SetCursorPos(p2.x, p2.y);

can any one help me?or any other idea for reaching properties on right click meny is welcomed
Posted 29-Aug-12 7:25am
Edited 29-Aug-12 9:23am
Nueman 29-Aug-12 14:18pm
Please edit your question and use the space bar to separate sentences. Your post is very hard to read. Thanks.
khangaldi 29-Aug-12 14:27pm
im so sorry about that
Nueman 29-Aug-12 14:43pm
No problem with me. :) I am just trying to help you get an answer to your question. You have to consider the people that will be reading your question and use appropriate spacing, punctuation, and capitalization.
Zoltán Zörgő 30-Aug-12 0:40am
I can not imagine, what is the purpose of this. Perhaps there is a more simpler way to achieve what you want, without webbrowser. Could you tell us, what's the goal of the project?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.151126.1 | Last Updated 29 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100