Quick links
Latest articles
Internship
Members
New...
Algorithms
Discrete Mathematics
Big data
Languages
C
C++
C++ STL
Java
Data Structure
C#.Net
Android
Kotlin
SQL
Web
PHP
Python
JavaScript
CSS
Ajax
Node.js
Web prog.
Programs
C
C++
DS
Java
C#
Python
Aptitude
C
C++
Java
DBMS
Interview
C
Embedded C
Java
SEO
HR
CS Subjects
CS Basics
O.S.
Networks
DBMS
Embedded Systems
Cloud Computing
Machine learning
CS Organizations
Linux
DOS
More...
Articles
Puzzles
News/Updates

Home » .Net » C#.Net » C#.Net Windows Development

TextBox.Visible Property with Example in C#.Net



C#.Net - TextBox.Visible Property with Example: Here we are going to learn about the Visible property of TextBox Control in C#.Net Windows Application Development.
Submitted by IncludeHelp, on September 10, 2018

Here we are demonstrating use of Visible property of TextBox Control.

Visible property contains two values

  1. True: Using this - textbox can be visible on parent control form
  2. False: Using this - textbox can be hide on parent control form

By default this is True.

Example:

TextBox.Visible Property with Example in C#.Net

TextBox.Visible Property with Example in C#.Net

In this example, we took a Windows form that contains a textbox and button named txtInput and btnShow respectively, we can change the name of the control using name property. And we set Visible property to False. Using property window, we can open property window using "F4" short-cut key for selected control.

Code to show TextBox on 'button_click' Event:

private void btnShow_Click(object sender, EventArgs e)
{
   textInput.Visible = true;
}





Quick links:
C FAQ(s) C Advance programs C/C++ Tips & Tricks Puzzles JavaScript CSS Python Linux Commands PHP Android Articles More...

Featured post:
Introduction to Linux (Its modes, Safety, Most popular Applications)
Linux Best Distribution Software (Distros) of 2018

Was this page helpful? Please share with your friends...

Are you a blogger? Join our Blogging forum.

Comments and Discussions



Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com (2015-2018), Some rights reserved.