Ejemplo n.º 1
0
        /// <summary>
        /// 弹出Pup窗口提醒
        /// </summary>
        /// <param name="title">窗口标题</param>
        /// <param name="subject">提醒主题</param>
        /// <param name="msg">信息</param>
        public static void ShowPupUp(string title, string subject, string msg)
        {
            //string msg = "ss";
            int         intervalTime = 6000;
            MessageForm messageform  = new MessageForm(title, msg, intervalTime)
            {
                ShowInTaskbar = false
            };
            int   x = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width - messageform.Width;
            int   y = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height;
            Point p = new Point(x, y - messageform.Height);

            messageform.PointToScreen(p);
            messageform.Location = p;
            messageform.Show();
        }