Suppose that you have a 3rd party application that’s just a red window. Is there a straightforward way to change its color once you obtain the window handle?
Share
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.
The best I could come up with so far is to use
Graphics.FillRectangleComplete winform working example:
You also can try obtain window size information by using GetWindowRect as described here: Get A Window's Bounds By Its Handle
to avoid using 10000 for width and height.