Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
175
Ultralabel and autosize
posted

This is what I am trying to accomplish...

 I want the ultralable to autosize width up to a maximum, and i want it to autosize height and wrap text.

 So I have

myLabel.WrapText=true;

myLabel.AutoSize = true;

myLabel.MaximumSize = (200,0);

 This does not work. It only expands the width up to the specified maximum. The label will not grow as necessary in height to display the text. Is there some other way to accomplish this or am I missing something?