How can I add a hint or tooltip to a label in C# Winforms?

前端 未结 5 2054
不知归路
不知归路 2021-01-31 06:43

It seems that the Label has no Hint or ToolTip or Hovertext property. So what is the preferred method to show a hint, tooltip

5条回答
  •  臣服心动
    2021-01-31 07:40

    You have to add a ToolTip control to your form first. Then you can set the text it should display for other controls.

    Here's a screenshot showing the designer after adding a ToolTip control which is named toolTip1:

    enter image description here

提交回复
热议问题