码迷,mamicode.com
首页 > Windows程序 > 详细

C# 在右下角弹出窗口

时间:2015-02-07 11:40:03      阅读:258      评论:0      收藏:0      [点我收藏+]

标签:

窗口代码如下:

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

        }
    }
}

  

C# 在右下角弹出窗口

标签:

原文地址:http://www.cnblogs.com/Ares-blog/p/4278460.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!