Autor Beitrag
bd.cole
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 46

Win XP, Vista
C# (VS 2005)
BeitragVerfasst: Mi 29.08.07 15:08 
Ich hoffe das ist hier die richtige Sparte. Ich will in meinem Statusstrip eine Uhr anzeigen lassen, die die aktuelle Systemzeit zeigt. Die Uhr zeigt beim Start die aktuelle Systemzeit an, aber läuft nicht weiter, wie mach ich das?

ausblenden C#-Quelltext
1:
2:
DateTime dt = DateTime.Now;
toolStripStatusLabel1.Text =  dt.ToLongTimeString();
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mi 29.08.07 15:12 
Verwende am Besten einen Timer, in dem Du jede Sekunde das Label aktualisierst.

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".