系统运行时间 [英] SYSTEM RUNNING TIME

查看:68
本文介绍了系统运行时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

请确认如何显示正在运行的时钟.即按定义

label1 = time.now

仅显示表单的加载时间.我们将如何显示运行时间.时间

标签1的数量应该每秒钟更改一次.

Dear All,

Kindly confrim how to show the running clock. i.e as defined

label1= time.now

show only loading time of form. How we will show the running time. Time

of the label1 should change with every seconds.

推荐答案

使用Window.setInterval()方法每秒触发Javascript函数.

问候,
Sushant.
use Window.setInterval() method to trigger the Javascript function every second.

Regards,
Sushant.


在表单中添加一个计时器,启用该计时器,将其intervall设置为最适合您的需要,并在timer_tick-event中设置label1.text = time.now.
并获得有关VB.NET的书,因为这是非常基础的.
Add a timer to your form, enable that timer, set its intervall to whatever suits your needs best and set label1.text = time.now in the timer_tick-event.
And get a book about VB.NET since this is quite basic.


这篇关于系统运行时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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