如果textbox1,如何将label设置为visible1 = false! =每15秒一次? [英] How to set visible to label1 = false if textbox1 ! =null every 15 second ?

查看:173
本文介绍了如果textbox1,如何将label设置为visible1 = false! =每15秒一次?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果textbox1!=每15秒为空,如何设置visible1 = false?

我有windows表格c#vs2015 form1

有label1和textbox1

i需要设置label1.visible = false;从textbox1开始15秒后有价值

来解释更多

假设我打开form1并在写下michel 15秒后写入textbox1 michel

set label1 = false

可见,如果textbox1没有值,15秒后不能对label1执行可见的错误

那么请该怎么做?



我尝试过:



How to set visible to label1 = false if textbox1 !=null every 15 second ?
I have windows form c# vs2015 form1
have label1 and textbox1
i need to set label1.visible=false ; after 15 second from textbox1 have value
to explain more
suppose i open form1 and write in textbox1 michel after writing michel by 15 second
set visible to label1=false
and if textbox1 not have value not execute visible to false to label1 after 15 second
so that how to do that please ?

What I have tried:

How to set visible to label1 = false if textbox1 !=null every 15 second ?

推荐答案

Textbox_TextChange 事件,启动计时器事件。触发 Timer_Tick 事件时,更改标签状态。
In the Textbox_TextChange event, start a timer event. When the Timer_Tick event fires, change the label state.


这篇关于如果textbox1,如何将label设置为visible1 = false! =每15秒一次?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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