Relative Content

Tag Archive for c#winformsclick

Sending clicks from one Windows Form to another

I want to simulate a mouse click on Form1 at the same position where a real click occurred on Form2. Form1 is transparent and allows clicks to pass through it. I have code that sends the x and y coordinates from Form2 to Form1, and I am successfully receiving these coordinates. Now, I need to programmatically simulate a click on Form1 using these coordinates, but it is not working. And I don’t know is it possible at all? The goal is for Form1 to mimic all actions (clicks, hovers) performed on Form2.

Sending clikcs from one Widnows from to other

I want to simulate a mouse click on Form1 at the same position where a real click occurred on Form2. Form1 is transparent and allows clicks to pass through it. I have code that sends the x and y coordinates from Form2 to Form1, and I am successfully receiving these coordinates. Now, I need to programmatically simulate a click on Form1 using these coordinates, but it is not working. And I don’t know is it possible at all? The goal is for Form1 to mimic all actions (clicks, hovers) performed on Form2.