Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

For the .NET ToolStripButton, can I have a multiple line "Text" property?

Tags:

.net

winforms

I have a toolbar of images, and I want text labels underneath the images. Where the text labels are multiple words, I'd like to stack the words vertically. How can I do it?

like image 886
Corey Trager Avatar asked Dec 30 '22 21:12

Corey Trager


1 Answers

To elaborate on Paulo's answer:

You can't do the multiline at design time. But at runtime you can set the .Text property of each ToolStripButton like this:

ToolStripButton1.Text = "This is " & ControlChars.CrLF & "a button."

That will give you the multi-line display for your text.

like image 146
Stewbob Avatar answered Feb 17 '23 04:02

Stewbob