Search code examples
c#.netnotificationstaskbar

Display form on the bottom right of screen?


I'm creating an application that is based on displaying some notifications which the user should Accept or Refuse

How can i show the request form on the right bottom of screen not above taskbar ?

enter image description here

Code :

notificationForm ntf = new notificationForm();
ntf.ShowDialog();

Any help would be highly appreciated


Solution

  • Try this:

            int x = Screen.PrimaryScreen.WorkingArea.Width - this.Width;
            int y = Screen.PrimaryScreen.WorkingArea.Height - this.Height;
            this.Location = new Point(x, y);