Auto adjust Label Text as I move splitter

622 views Asked by At

enter image description here

As I move splitter to left, it hide my text(as in above image). I want to auto adjust Label Text as I move splitter.

update me!

1

There are 1 answers

1
Sebastian Piu On

You need to set the lb.Anchor property, info here

it should be something like

lb.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom;

or similar depending where you want it to anchor