Home > DeveloperSection > Forums > Windows form always on top not working c#
Jayden Bell
Jayden Bell

Total Post:105

Points:739
Posted on    January-27-2014 2:54 AM

 C# C# 
Ratings:


 1 Reply(s)
 2453  View(s)
Rate this:

I need to show a message notification from a systray app while users are operating in a browser. 

I want this notification to be displayed on top of everything but even if I set it to be TopMost or TopLevel or BringToFront or Focus there's no way I can achieve what I want.

I'm using a simple windows Form and I show it using ShowDialog from the systray app.

Please help me :)



Pravesh Singh

Total Post:411

Points:2881
Posted on    January-27-2014 3:14 AM

Hi Jayden,

NameOfYourWindow myTopForm = new NameOfYourWindow();

myTopForm.Owner = App.Current.MainWindow;

myTopForm.ShowInTaskbar = false;

myTopForm.TopMost = true;

myTopForm.ShowDialog();


Don't want to miss updates? Please click the below button!

Follow MindStick