Click here to Skip to main content
11,482,402 members (75,357 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# WinForm
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 20:02pm
Edited 9-Dec-12 20: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 at 10-Dec-12 1:38am
is there any simple way
Abhinav S at 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)

Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 10 Dec 2012
Copyright © CodeProject, 1999-2015
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