首页 > 代码库 > 弹出窗右下角显示

弹出窗右下角显示

技术分享

//窗口加载时
        private void BroadcastRecieveFrom_Load(object sender, EventArgs e)
        {
            //初始化窗口出现位置
            Point p = new Point(Screen.PrimaryScreen.WorkingArea.Width - this.Width, Screen.PrimaryScreen.WorkingArea.Height - this.Height);
            this.PointToScreen(p);
            this.Location = p;
            NativeMethods.AnimateWindow(this.Handle, 130, AW.AW_SLIDE + AW.AW_VER_NEGATIVE);//开始窗体动画
        }

 

 

疯吻IT

弹出窗右下角显示