I cant seem to figure this one out
I have a trackbar that i need to slide back and forth to adjust the time of a datetime object.
but even thought I have a Int in the value to add it still doesn't seem to do anything
can anyone see where I'm messing up?
C# Code:
DateTime CDeadline = new DateTime(); private void Track_Current_Scroll(object sender, EventArgs e) { // MessageBox.Show(Convert.ToString(Track_Current.Value * 10)); <--- displays the correct value CDeadline.AddMinutes(Track_Current.Value * 10); <---- does not work CDeadline.AddMinutes(1234); <--- static test still doesnt work lbl_Current_time.Text = CDeadline.ToString("HH:mm"); }




Reply With Quote