Results 1 to 6 of 6

Thread: datetime.addminutes

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    datetime.addminutes

    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:
    1. DateTime CDeadline = new DateTime();
    2.         private void Track_Current_Scroll(object sender, EventArgs e)
    3.         {
    4.             // MessageBox.Show(Convert.ToString(Track_Current.Value * 10));  <--- displays the correct value
    5.             CDeadline.AddMinutes(Track_Current.Value * 10); <---- does not work
    6.             CDeadline.AddMinutes(1234); <--- static test still doesnt work
    7.  
    8.             lbl_Current_time.Text = CDeadline.ToString("HH:mm");
    9.            
    10.         }
    Last edited by Crash893; Jul 8th, 2008 at 10:37 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width