如何在同一标签中显示时间和欢迎备注 [英] how to show time and welcome notes in same label

查看:51
本文介绍了如何在同一标签中显示时间和欢迎备注的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
我想先作欢迎词

在同一标签上放置10秒钟后,它应该显示时间
可以做到吗

怎么做
有人知道吗
在标签文字中,我键入了欢迎
并以形式输入了Label7.Text = Now
这显示了时间

hi
i want to give welcome notes first
and
after 10 secs in the same label it should show time
is that possible to do it

how to do it
do anyone know
in label text i typed welcome
and in form i typed Label7.Text = Now
this shows time

推荐答案

非常简单.让您的计时器延迟为1秒
very simple.lets your timer delay is 1 sec
var count=0;


在您的计时器功能中


in your timer function

void timer_function()
{
if(cout >= 10)
{
   label1.text=DateTime.Now.Tostring();
}
else
   count++;
}


这篇关于如何在同一标签中显示时间和欢迎备注的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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