T
T
TechNOIR2018-02-25 19:40:01
C++ / C#
TechNOIR, 2018-02-25 19:40:01

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 -
5a92e6dcbb973603938131.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Kulbida, 2018-02-25
@TechNOIR

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 question

Ask a Question

731 491 924 answers to any question