motorizedmedia
February 22nd, 2008, 11:45 PM
In one of my forms I have a label that is set to display the current time (as of when the form was loaded using the following script:
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {
DateTime dt=System::DateTime::Now;
label2->Text= dt.ToString();
}
This is pretty much a time stamp, but what i want the label to do is to display the current time as if it were a clock so that it would automatically update itself. How would I go about accomplishing this?
Thanks,
JB
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {
DateTime dt=System::DateTime::Now;
label2->Text= dt.ToString();
}
This is pretty much a time stamp, but what i want the label to do is to display the current time as if it were a clock so that it would automatically update itself. How would I go about accomplishing this?
Thanks,
JB