Answer to Question #8084 in C# for trilok pandey

Question #8084
plz. guide me how can i show each winform for 10 seconds in c# with timer,
i am confued and plz. .provide me some sample for timer .

thanks
in advnace
1
Expert's answer
2012-04-05T09:27:04-0400
public void
MyFunction()
{
firstForm.ShowDialog();
secondForm.Show();
}

public
void firstForm_Load(object sender, EventArgs e)
{
Timer timer = new
System.Windows.Forms.Timer() { Interval = 2000 };
timer.Tick += delegate {
timer.Stop(); Close(); };
timer.Start();
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

trilok
06.04.12, 08:21

thanks sir , fine its working but how can i show form1 and form2 for 12 seconds each one from form3 as a control panel as i am to show traffic simulation with road1 road2 road3 road4 with 4 forms and each form should be displayed for 12 seconds when i press the start button .

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS