NumericUpDown control

KNN

Member
Joined
Oct 6, 2006
Messages
14
Programming Experience
1-3
I have a timer control, that counts down time of the game...
I need to be able to change time using numericupdown control, when the time is stopped. Let's say I stopped time at 10:59 but want to restart it at 10:34 ... is it possible and how , do I decrement the time with numbericupdown control

thanx
 
keep the hours and minutes in their own integer's then in the timer just decrease the integer by 1 (and check if the seconds integer is -1, if so then set the integer to 59 and decrease the minutes by 1, so on and so forth)

to get the integers simply split the nud's text property on the decimal (using the decimal point instead of a colon, looks funny but is simple to implement) and assign the first piece to the minutes integer and the second piece to the seconds integer, start the timer from there
 
Back
Top