How to make a button with multiple lines of text in Visual Studio?
How to make a button with multiple lines of text in Visual Studio?
I’m trying to create a clickable area that has multiple lines of text. A button would be perfect, but apparently the button only displays the first line of its Text field. Are there any other options? I tried putting labels on top of the button, but when you click a label the button is not pressed. I tried to put the button on top of the labels and make it transparent, but the labels don’t show through.
This is for a smart device application (windows mobile 6).
Tags: button, Lines, multiple, Studio, text, Visual
Under Forum

3 Comments for How to make a button with multiple lines of text in Visual Studio?
1. Shannon | February 15th, 2011 at 9:00 am
If a web app, use a link with a
in it and change the style of the link to suit your design.
You can also use a read-only multi-line textbox and again change the style to suit your needs, and adding a onClick event handler.
2. Deerpark | February 15th, 2011 at 9:43 am
One option would be to drop the button altogether and make a click event on the label. VS can assign one automatically if you double click the label in the form designer.
3. Chris | February 15th, 2011 at 10:30 am
It is possible to make a button’s caption display on more than one line. Just set the Multiline property for the button to true.
Leave a Comment for How to make a button with multiple lines of text in Visual Studio?
You must be logged in to post a comment.
Trackback this post | Subscribe to the comments via RSS Feed