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

前端 未结 5 2135
不知归路
不知归路 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:26

    just another way to do it.

    Label lbl = new Label();
    new ToolTip().SetToolTip(lbl, "tooltip text here");
    

提交回复
热议问题