Home > Software design >  Label with Auto Length increment as per need but not width
Label with Auto Length increment as per need but not width

Time:09-03

I'm stuck on a code where I need to make Label AutoSize with fixed width. I've tried

Label1.AutoSize = True
Label1.MaximumSize = (FixedWidthInteger,0)

but its still not resizing the length when text if overflow. I've tried to make Panel also AutoSize Enabled to let Label resizing itself but both ways doesn't work. Thank you if you can help me with this please.

CodePudding user response:

Its fixed. I just change the Anchor to all sides of the Panel and its resizing well now.

  • Related