using System; using System.Collections.Generic; using System.Linq; namespace PatientMan.Forms { public partial class frmShowSaveInfo : DevExpress.XtraEditors.XtraForm { private int i = 0; public frmShowSaveInfo() { InitializeComponent(); } private void timer_Tick(object sender, EventArgs e) { if (i > 10) { Close(); } i = i + 1; } } }