Click here to Skip to main content
13,004,812 members (67,180 online)
Rate this:
Please Sign up or sign in to vote.
See more:
private void CountdownTimer_Load(object sender, EventArgs e)
            Timer MyTimer = new Timer();
            MyTimer.Interval = (20 * 60 * 1000); // 20 mins
            MyTimer.Tick += new EventHandler(MyTimer_Tick);
        private void MyTimer_Tick(object sender, EventArgs e)
            MessageBox.Show("time is up");
Timer MyTimer = new Timer();

so i need to Display Remaining Time Like Minutes:Seconds Like this How can i
Posted 9-Dec-12 19:02pm
Updated 9-Dec-12 19:04pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Use the Timer with a TimeSpan. This example on msdn -[^] should really help you get started.
leaderbalaji 10-Dec-12 1:38am
is there any simple way
Abhinav S 10-Dec-12 2:09am
Honestly, I dont think there is any simpler accurate way to do this.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170627.1 | Last Updated 10 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100