private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
                e.Cancel = true;
                timer2.Start();
                int i=MessageBox(0, "是否要关闭计算机?剩余时间5", "消息框",0x20|1);
                if (i == 1)
                {
                    e.Cancel = false;
                }
                else
                {
                    e.Cancel = true;
                }
        }
 private void timer2_Tick(object sender, EventArgs e)
{
            
     IntPtr i = FindWindow(null, "消息框");
     if (i == IntPtr.Zero)
     {     }
     else
     {
         SendMessage(i, WM_CLOSE, 0, 0);
     }
}
我想在timer2中加一个变量来动态显示MessageBox中的动态时间,这个能做吗??