C# 在右下角弹出窗口

时间:2021-01-18 14:55:34

窗口代码如下:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms; namespace FrmSendInfo
{
public partial class FrmMini : Form
{
public FrmMini(string msg)
{
InitializeComponent();
txtMsg.Text = msg;
// ----- 设置窗口位置
Rectangle rect = System.Windows.Forms.SystemInformation.WorkingArea;
this.Location = new Point(rect.Width - this.Width, rect.Height - this.Height);
} private void FrmMini_Load(object sender, EventArgs e)
{ }
}
}