如何在表格上显示时钟 [英] how to show clock on form

查看:76
本文介绍了如何在表格上显示时钟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在活动表单上显示当前时间,对此有什么帮助吗? ,在任何地方都有表格标题)如果要刷新它,可以使用计时器,线程,backgroundworker.选择是您自己的.


检查此链接.

http://www.mycsharpcorner.com/Post.aspx?postID=23 [ ^ ]


i want to show current time on active form can any help me for this

解决方案

Use DateTime.Now.ToString("dd-MMM-yyyy HH:mm:ss") and set it wherever you want (i.e. Label, Textbox, Form title anywhere) If you want to refresh it, you may use timer, thread, backgroundworker. The choice is yours.


Check this link.

http://www.mycsharpcorner.com/Post.aspx?postID=23[^]


这篇关于如何在表格上显示时钟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆