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

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

    System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();
    ToolTip1.SetToolTip( Label1, "Label for Label1");
    

提交回复
热议问题