Click here to Skip to main content
15,912,756 members
Home / Discussions / C#
   

C#

 
Generaltimer for 5 seconds. Pin
tingu29-Feb-08 5:56
tingu29-Feb-08 5:56 
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();
}
GeneralRe: timer for 5 seconds. Pin
led mike29-Feb-08 6:17
led mike29-Feb-08 6:17 
GeneralRe: timer for 5 seconds. Pin
Not Active29-Feb-08 6:19
mentorNot Active29-Feb-08 6:19 
QuestionAll methods called when class instantiated? Pin
stuebbie29-Feb-08 4:48
stuebbie29-Feb-08 4:48 
AnswerRe: All methods called when class instantiated? Pin
led mike29-Feb-08 5:04
led mike29-Feb-08 5:04 
GeneralRe: All methods called when class instantiated? Pin
stuebbie29-Feb-08 5:17
stuebbie29-Feb-08 5:17 
GeneralRe: All methods called when class instantiated? [modified] Pin
led mike29-Feb-08 5:54
led mike29-Feb-08 5:54 
AnswerRe: All methods called when class instantiated? Pin
Not Active29-Feb-08 5:07
mentorNot Active29-Feb-08 5:07 
GeneralRe: All methods called when class instantiated? Pin
led mike29-Feb-08 5:10
led mike29-Feb-08 5:10 
GeneralRe: All methods called when class instantiated? Pin
Not Active29-Feb-08 5:27
mentorNot Active29-Feb-08 5:27 
GeneralRe: All methods called when class instantiated? Pin
stuebbie29-Feb-08 5:29
stuebbie29-Feb-08 5:29 
GeneralRe: All methods called when class instantiated? Pin
stuebbie29-Feb-08 5:34
stuebbie29-Feb-08 5:34 
GeneralRe: All methods called when class instantiated? Pin
Guffa29-Feb-08 6:06
Guffa29-Feb-08 6:06 
GeneralRe: All methods called when class instantiated? Pin
J4amieC29-Feb-08 6:22
J4amieC29-Feb-08 6:22 
AnswerRe: All methods called when class instantiated? Pin
Mark Churchill29-Feb-08 5:15
Mark Churchill29-Feb-08 5:15 
GeneralRe: All methods called when class instantiated? Pin
codemunch29-Feb-08 5:50
codemunch29-Feb-08 5:50 
AnswerRe: All methods called when class instantiated? Pin
stuebbie29-Feb-08 6:00
stuebbie29-Feb-08 6:00 
GeneralRe: All methods called when class instantiated? Pin
stuebbie29-Feb-08 5:53
stuebbie29-Feb-08 5:53 
GeneralRe: All methods called when class instantiated? Pin
codemunch29-Feb-08 5:56
codemunch29-Feb-08 5:56 
QuestionEvent handling in Context menu of TreeView node [modified] Pin
RobSmith7729-Feb-08 4:39
RobSmith7729-Feb-08 4:39 
GeneralRe: Event handling in Context menu of TreeView node Pin
led mike29-Feb-08 5:08
led mike29-Feb-08 5:08 
GeneralRe: Event handling in Context menu of TreeView node Pin
RobSmith7729-Feb-08 5:13
RobSmith7729-Feb-08 5:13 
General3tier Pin
Trustapple29-Feb-08 4:37
Trustapple29-Feb-08 4:37 
GeneralIgnore: Code dump, no question Pin
led mike29-Feb-08 4:45
led mike29-Feb-08 4:45 
GeneralRe: Ignore: Code dump, no question Pin
MidwestLimey29-Feb-08 4:55
professionalMidwestLimey29-Feb-08 4:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.