ILT – How to bring your window (form) to the top C#

2013/04/11

How to bring a window (form) to the top?

Or how to make your window active from the code?

Simply: call the Activate() function (method) of your form instance.


yourForm.Activate();

// e.g.

if(spamCount  >  10000)
{
   this.lblStatus = "Warning - Spam count is 10,000";
   this.Activate();// This will bring the window to front.
}

Menol
ILT

This entry was posted in C#.Net and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *