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

TextBox.Multiline Property with Example in C#.Net

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

Here we are demonstrating use of Multiline property of the TextBox Control.

Multiline property contains two values:

  1. True: We can enter text in more than one line
  2. False: We can enter text in only single line

By default this is False.


TextBox.Multiline Property with Example in C#.Net

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

TextBox.Multiline Property with Example in C#.Net

We can change this property using code:

private void Form1_Load(object sender, EventArgs e)
	textInput.Multiline = true;

Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.

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 some rights reserved.