focus to the appllication window

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I have a timer running in my windows .net application. While users are
working with the other applications I need to bring focus to this application
when timer elapses. If the application was minimized for example, I need to
maximize it. How can I do that?
Thanks,
Jim.
 
Hi,

You can listen for the Elapsed event in the timer. In the event handling
code you can call the Focus() method on the form to give it focus.

Also Make sure you set Form.WindowState property to Maximised so that the
window is minimised gets maximised.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top