根据程序流程将不可见文本框更改为可见 [英] Changing invisible textboxes to visible depending on program flow

查看:102
本文介绍了根据程序流程将不可见文本框更改为可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows窗体中有四个文本框,可以显示测量数据.当程序启动时,只有第一个可见.根据到达该程序的信息,文本框2、2和3或2、3和4是可见的.我试图改变 该文本框显示为可见,但到目前为止,所有操作都没有使它超出错误列表.

I have four textboxes in a windows form that can show measurement data. When the program starts only the first will be visible. Depending on info arriving to the program textbox 2, 2 and 3, or 2, 3 and 4 shall be visible. I have tried to change the textbox to visible but everything so far has not made it past the error list.

有人知道该怎么做吗?

/mbostrum

推荐答案

textBox1.Visible = true; //使文本框可见

textBox1.Visible = true; // Make the textbox visible

textBox1.Visible = false; //使其不可见

textBox1.Visible = false; // Make it invisible


这篇关于根据程序流程将不可见文本框更改为可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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