屏幕右下角的显示形式?

Raf*_*ari 1 .net c# notifications taskbar

我正在创建一个基于显示一些用户应该接受或拒绝的通知的应用程序

如何在不在任务栏上方的屏幕右下方显示请求表单?

在此输入图像描述

代码:

notificationForm ntf = new notificationForm();
ntf.ShowDialog();
Run Code Online (Sandbox Code Playgroud)

任何帮助将受到高度赞赏

Kha*_*Ali 8

试试这个:

        int x = Screen.PrimaryScreen.WorkingArea.Width - this.Width;
        int y = Screen.PrimaryScreen.WorkingArea.Height - this.Height;
        this.Location = new Point(x, y);
Run Code Online (Sandbox Code Playgroud)