Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a MenuStrip which has items' width to be small; I want to wrap text of that item. How to do this? Hope you help me. Thanks.
Posted
Comments
BillWoodruff 15-Nov-13 12:33pm    
Assuming the Control has vertical space to handle wrapped text: have you tried setting the MenuStrip Item's auto-size to 'false.

This is Windows Forms ?
Andrewpeter 16-Nov-13 11:21am    
Yes Bill, I am working with Windows Forms, I tried to do as follows you supported, but It did not work; I had to use '\n' to separate the text of menu item and it worked, but I had to manual with code. I want to separate automatically! Hope you help me to do this. Thanks.

1 solution

use CSS3 text-wrap is as below :
C#
p.test {text-wrap:none;}


More info :CSS3 text-wrap Property
 
Share this answer
 
Comments
BillWoodruff 15-Nov-13 20:14pm    
How do you know the OP's question is about a web application ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900