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

Expert's answer

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!

LATEST TUTORIALS
APPROVED BY CLIENTS