How to AutoSize the height of a Label but not the width

后端 未结 3 1542
悲哀的现实
悲哀的现实 2020-12-05 12:57

I have a Panel that I\'m creating programmatically; additionally I\'m adding several components to it.

One of these components is a Label w

3条回答
  •  臣服心动
    2020-12-05 13:42

    Just use the AutoSize property, set it back to True.

    Set the MaximumSize property to, say, (60, 0) so it can't grow horizontally, only vertically.

提交回复
热议问题