You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

3 years ago
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Stone.Common.WinModule
{
public partial class frmMessagePop : Form
{
public int TimerCount = 0;
public frmMessagePop()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{
this.lblTimer.Text = TimerCount.ToString() + " ���Զ��ر�...";
this.lblTimer.Update();
if ( TimerCount <= 0)
{
timer1.Enabled = false;
this.Close();
this.Dispose();
}
TimerCount--;
}
private void frmMessagePop_Load(object sender, EventArgs e)
{
//�趨��������ʱ��λ��Ϊ���½�
this.Left = Screen.PrimaryScreen.WorkingArea.Width - this.Width - 5;
this.Top = Screen.PrimaryScreen.WorkingArea.Height - this.Height;
}
private void btnOK_Click(object sender, EventArgs e)
{
this.Close();
this.Dispose();
}
}
}