WINDOWS FORM ALWAYS ON TOP NOT WORKING C#

Jayden Bell

Total Post:110

Points:774
Posted by  Jayden Bell
C# 
C#
 3099  View(s)
Ratings:
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 :)

  1. Pravesh Singh

    Post:412

    Points:2888
    Re: Windows form always on top not working c#

    Hi Jayden,


    NameOfYourWindow myTopForm = new NameOfYourWindow();

    myTopForm.Owner = App.Current.MainWindow;

    myTopForm.ShowInTaskbar = false;

    myTopForm.TopMost = true;

    myTopForm.ShowDialog();

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!