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.
 
Back
Top