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


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.


// e.g.

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


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 *