Display and hide Textbox in C#

Reprinted: (330 messages) Display and hide Textbox in C#_textbox hidden_Hao『』Hao's Blog-CSDN Blog

1. What is the Textbox control?

In c#winform , the control that is mainly used to set or return the text information displayed in the text control

Example:
The control used to display the picture name (Chinese cabbage) in the figure is the Textbox control

 2. Use steps

1. Display the Textbox control

The code is as follows (example):

 void cabbage()
        {
            textBox1.Visible = true;//使叫textBox1的textBox控件显示出来
        }

2. Hide the Textbox control

The code is as follows (example):

 void cabbage()
        {
            textBox1.Visible=false;//使叫textBox1的textBox控件隐藏不见
        }

Summarize

The above is what I want to talk about today. This article only briefly introduces the display and hiding of the textBox control in C#.

Guess you like

Origin blog.csdn.net/chentiebo/article/details/131009921