Answer on Question#38482 - Programming - Other
1) First of all you need to add statusStrip and timer to the main panel.
2) Then add toolStripStatusLabel into statusStrip.
3) The last step is to turn the timer on and set tick event for it.
private: System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e)
{
statusStrip1->Items[0]->Text = DateTime::Now.ToShortDateString() + " " +
DateTime::Now.ToShortTimeString() + ":" + DateTime::Now.Second;
}
Comments