Thank you for the code but i think you didn't got my question.....the programs requires start timer from 0 second and display in minute:seconf:ff format .....while using this code:
I want to display it in minute:seconf:ff format but I want the value of realSec at the end of the window......for example if the time elasped is 2 min 3 second XX ff then I want exact value of 123 sec.....Code:private void milliSecTimer_Tick(object sender, EventArgs e) { TimerTextblock.Text = realSec.ToString()+" : "+microSec.ToString(); microSec++; if (microSec > 10) { microSec = 0; realSec++; } } private void Window_Loaded(object sender, RoutedEventArgs e) { /* DispatcherTimer milliSecTimer = new DispatcherTimer(); milliSecTimer.Tick += new EventHandler(milliSecTimer_Tick); //dispatcherTimer.Interval = new TimeSpan(0, 0, 1); milliSecTimer.Interval = new TimeSpan(1000000); milliSecTimer.Start(); }




Reply With Quote