Windows form always on top not working c#

Total Post:110

Points:774

C# 
C#
 3811  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. 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

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.