I have grid of button. I want to a button to be clicked(invoke click event) without any key press or mouse event.Just want it to be clicked automatically on selection within a limited time interval(3 secs).
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.
You can programmatically click a button using the automation interfaces in WPF. Of course if you were using commands instead of handling click events (highly recommended) then you could just invoke the command.
Here’s the code for clicking a button using automation from Josh Smith’s blog.