Answer the question
In order to leave comments, you need to log in
C# (Windows Forms). How to wrap the text of a Label located on a Panel?
Good afternoon.
Can you please tell me how to wrap the text of the Label located on the Panel?
Those. how would the label be attached to the panel so that the text wraps inside the Panel? so that the maximum length of the Label is the maximum length of the Panel, and the height of the Label expands accordingly when it is moved.
Now it looks like this -
Answer the question
In order to leave comments, you need to log in
Label can be placed in a container - FlowLayoutPanel or TableLayoutPanel (1 cell)
Set the Dock attribute of the container and Label to Fill,
then the behavior of the Label will correspond to the specified
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question