Click here to Skip to main content
15,920,801 members
Home / Discussions / C#
   

C#

 
GeneralRe: Ok, is it just me or...? Pin
jas0n234-Apr-09 20:42
jas0n234-Apr-09 20:42 
AnswerRe: Ok, is it just me or...? Pin
DaveyM694-Apr-09 22:16
professionalDaveyM694-Apr-09 22:16 
AnswerRe: Ok, is it just me or...? Pin
Luc Pattyn4-Apr-09 23:02
sitebuilderLuc Pattyn4-Apr-09 23:02 
AnswerRe: Ok, is it just me or...? Pin
Christian Graus5-Apr-09 0:01
protectorChristian Graus5-Apr-09 0:01 
GeneralRe: Ok, is it just me or...? Pin
jas0n235-Apr-09 0:05
jas0n235-Apr-09 0:05 
AnswerRe: Ok, is it just me or...? Pin
#realJSOP5-Apr-09 3:09
professional#realJSOP5-Apr-09 3:09 
AnswerRe: Ok, is it just me or...? Pin
PIEBALDconsult5-Apr-09 5:39
mvePIEBALDconsult5-Apr-09 5:39 
QuestionHow to validate the xml while updating the node of an xml Pin
member1234564-Apr-09 19:40
member1234564-Apr-09 19:40 
QuestionRounded button and panel in c# Pin
sepel4-Apr-09 19:17
sepel4-Apr-09 19:17 
AnswerRe: Rounded button in c# Pin
Xmen Real 4-Apr-09 19:36
professional Xmen Real 4-Apr-09 19:36 
AnswerRe: [Message Deleted] Pin
Luc Pattyn4-Apr-09 23:05
sitebuilderLuc Pattyn4-Apr-09 23:05 
GeneralRe: [Message Deleted] Pin
sepel5-Apr-09 18:17
sepel5-Apr-09 18:17 
QuestionCOM Interop GUID Help Pin
monkh4-Apr-09 18:01
monkh4-Apr-09 18:01 
QuestionClickOnce app... contanstly checking for updates? Pin
Jacob Dixon4-Apr-09 17:16
Jacob Dixon4-Apr-09 17:16 
AnswerRe: ClickOnce app... contanstly checking for updates? Pin
Mycroft Holmes4-Apr-09 22:48
professionalMycroft Holmes4-Apr-09 22:48 
GeneralRe: ClickOnce app... contanstly checking for updates? Pin
Jacob Dixon5-Apr-09 5:00
Jacob Dixon5-Apr-09 5:00 
GeneralRe: ClickOnce app... contanstly checking for updates? Pin
Mycroft Holmes5-Apr-09 13:03
professionalMycroft Holmes5-Apr-09 13:03 
GeneralRe: ClickOnce app... contanstly checking for updates? Pin
Jacob Dixon5-Apr-09 5:04
Jacob Dixon5-Apr-09 5:04 
QuestionBlackJack using WPF Pin
BenJamming4-Apr-09 16:22
BenJamming4-Apr-09 16:22 
AnswerRe: BlackJack using WPF Pin
Luc Pattyn4-Apr-09 23:06
sitebuilderLuc Pattyn4-Apr-09 23:06 
AnswerRe: BlackJack using WPF Pin
#realJSOP5-Apr-09 3:12
professional#realJSOP5-Apr-09 3:12 
Questionaccessing elements from a webbrowser Pin
jeanbern4-Apr-09 13:28
jeanbern4-Apr-09 13:28 
could anyone tell me how to get the IntPtr handle of a flash element of a site which my webbrowser is focused on?
I'm trying to use SendMessage on the site and it's not working because I need to be sending it to the flash player and not just the webbrowser or something
I can get my clicking to work fine with google but not with flash content

int x = 283; // X coordinate of the click
            int y = 342; // Y coordinate of the click

            IntPtr handle = two.Handle;
            StringBuilder className = new StringBuilder(100);
            
            while (className.ToString() != "Internet Explorer_Server") // The class control for the browser            
            {
                handle = GetWindow(handle, 5); // Get a handle to the child window
                GetClassName(handle, className, className.Capacity);
            }
            
            IntPtr lParam = (IntPtr)((y << 16) | x); // The coordinates
            
            IntPtr wParam = IntPtr.Zero; // Additional parameters for the click (e.g. Ctrl)
            const uint downCode = 0x201; // Left click down code
            const uint upCode = 0x202; // Left click up code
            SendMessage(handle, downCode, wParam, lParam); // Mouse button down
            SendMessage(handle, upCode, wParam, lParam); // Mouse button up

            System.Drawing.Pen myBrush = new System.Drawing.Pen(System.Drawing.Color.Red);
            Graphics g = two.CreateGraphics();
            Graphics h = one.CreateGraphics();
            h.DrawEllipse(myBrush, new Rectangle(x, y, 5, 5));
            g.DrawEllipse(myBrush, new Rectangle(x, y, 5, 5));


here two is my webbrowser and one is just a transparent form over top of it which I will be using later, I just drew circles on them to tell where the mouse should be clicking, and as I said before, it works for other sites just not flash content
QuestionUsing FTPWebRequet for simple ftp-client on C# Pin
Eugene Efimov4-Apr-09 11:07
Eugene Efimov4-Apr-09 11:07 
AnswerRe: Using FTPWebRequet for simple ftp-client on C# Pin
N a v a n e e t h4-Apr-09 15:59
N a v a n e e t h4-Apr-09 15:59 
GeneralRe: Using FTPWebRequet for simple ftp-client on C# Pin
Eugene Efimov4-Apr-09 20:57
Eugene Efimov4-Apr-09 20:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.