Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show Current Time in Label VC++ 2005 1

Status
Not open for further replies.

razorjr

Programmer
Sep 23, 2006
6
0
0
MY
Look,i want to show current time in label
i try use the DateTimePicker and make it like this

TimeReal->Text = this->date->Text->ToString();

TimeReal is a label

But then,TimeReal show me current time but static.after it's get the value from datetimepicker and then no update.

i want it to show running current time.

So,can someone help me?btw i creating a Windows Forms Application
 
Try This:
Code:
DateTime currDateTime = System::DateTime::Now;
TimeReal->Text = currDateTime.ToString();
OB
 
Great,u really help me ;) Thx a lot.the problem is solved.

btw
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top