# \[C#\] Simulate Mouse Click

**URL:** <https://forum.kirupa.com/t/c-simulate-mouse-click/248212>\
**Category:** programming\
**Created:** [January 5, 2008, 1:00am UTC](https://forum.kirupa.com/t/c-simulate-mouse-click/248212 "2008-01-05T01:00:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KGen](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@KGen](https://forum.kirupa.com/u/KGen)\
**Post date:** [January 5, 2008, 1:00am UTC](https://forum.kirupa.com/t/c-simulate-mouse-click/248212/1 "2008-01-05T01:00:54Z")

</div>

Hello.

I need to be able to have a function simulate a mouse click on a non-button control in my program silently. By silent, I mean that if I run the program in the background, it would not give itself focus and would not hijack my mouse. Is this possible?

Thanks,  
KGen.
