Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How is CheckBox with multi-line text done in Windows Forms?

Tags:

How do I extend the text in a Windows Forms CheckBox to more than one line?

like image 429
Kenny C Avatar asked May 09 '11 13:05

Kenny C


People also ask

Which control is used for write more than one line text?

A multiline text box control is a large text box that can display several lines of text or accept this text from user input. Text boxes are often linked to select value lookups and detailed menus.

How do I increase the size of a CheckBox in Winforms?

There's an AutoSize option in the Properties windows; if you turn that off by changing it to False , you will be able to modify the size of your CheckBox .


1 Answers

You need to use \r\n in order to add a new line. You might have to do this in the code behind. So your code would be like this:

myLabel.Text = "New\r\nLine\r\nExample"; 
like image 160
keyboardP Avatar answered Oct 08 '22 03:10

keyboardP