C# 在右下角彈出窗口

窗口代碼以下:this

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)
        {

        }
    }
}
相關文章
相關標籤/搜索