BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
//At the bottom of the click event Timer t = new Timer(); t.Interval = 20; t.Tick += new EventHandler(t_Tick); t.Start(); //the handler private void t_Tick(object sender, EventArgs e) { Timer t = sender as Timer; t.Stop(); t.Tick -= new EventHandler(t_Tick); t.Dispose(); DoYourLongOperation(); }
>//At the bottom of the click event >Timer t = new Timer(); >t.Interval = 20; >t.Tick += new EventHandler(t_Tick); >t.Start(); > >//the handler >private void t_Tick(object sender, EventArgs e) >{ > Timer t = sender as Timer; > t.Stop(); > t.Tick -= new EventHandler(t_Tick); > t.Dispose(); > > DoYourLongOperation(); >} >