I want to make window active.
Scroll it, click on it. Just to show someone is working on it.
These methods are not working for this task.
Mouse.MouseDownEvent;
Keyboard.KeyDownEvent;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to use this function (C++) so you will have to pinvoke it. You can get the current windows (C# Form) handle easily.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms644950(v=vs.85).aspx
Edit: it seems someone did the hard work to pinvoke this method before check this out:
http://boycook.wordpress.com/2008/07/29/c-win32-messaging-with-sendmessage-and-wm_copydata/