-1

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!

Shahid Ghafoor
  • 2,991
  • 17
  • 68
  • 123

1 Answers1

1

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

Sebastian Piu
  • 7,838
  • 1
  • 32
  • 50
  • if your problem is lack of word-wrapping this might help you: http://stackoverflow.com/questions/1204804/word-wrap-for-label-in-winforms, if not use another control instead of a label (as a disabled richtexteditor) – Sebastian Piu Jan 10 '12 at 16:21