timer for 5 seconds.
-
Can somebody send me timer code for 5 seconds? I need to put it so that form can wait to be closed for 5 seconds. I need to show the form for 5 seconds before closing. Here is the code: private void Form1_Load(object sender, EventArgs e) { this.Show(); int ret1 = 0; int ret2 = 0; ret1 = ConfigureSSE1(); ret2 = CreateLogin(); // Add code here to wait for 5 seconds to display the form which has Label, "Configuring..." this.Close(); }
-
Can somebody send me timer code for 5 seconds? I need to put it so that form can wait to be closed for 5 seconds. I need to show the form for 5 seconds before closing. Here is the code: private void Form1_Load(object sender, EventArgs e) { this.Show(); int ret1 = 0; int ret2 = 0; ret1 = ConfigureSSE1(); ret2 = CreateLogin(); // Add code here to wait for 5 seconds to display the form which has Label, "Configuring..." this.Close(); }
-
Can somebody send me timer code for 5 seconds? I need to put it so that form can wait to be closed for 5 seconds. I need to show the form for 5 seconds before closing. Here is the code: private void Form1_Load(object sender, EventArgs e) { this.Show(); int ret1 = 0; int ret2 = 0; ret1 = ConfigureSSE1(); ret2 = CreateLogin(); // Add code here to wait for 5 seconds to display the form which has Label, "Configuring..." this.Close(); }
IMO this is a fairly useless form if all it does is call two methods then closes after five seconds. You don't need the this.Show(), the form will automatically show (unless you've done something very bizarre) There is a timer control available, plus other very easily discovered methods to have a thread wait. Try searching, then ask if you are stuck.
only two letters away from being an asset