【问题标题】:winforms - tooltip of statusbar labels not showing upwinforms - 状态栏标签的工具提示未显示
【发布时间】:2011-05-24 13:30:37
【问题描述】:

我在状态栏中有几个标签,我在上面设置了工具提示。

statusLblWeek.Text = weeklyHrs.ToString();
statusLblWeek.ToolTipText = " Consumption of this week " + statusLblWeek.Text;

状态标签显示正确,但工具提示未显示。为什么?

【问题讨论】:

    标签: c# winforms statusbaritem


    【解决方案1】:

    使用属性StatusStrip.ShowItemToolTips

    如果为 StatusStrip 显示工具提示,则为真;否则为假。默认为假。

    statusStrip1.ShowItemToolTips = true;
    statusLblWeek.Text = weeklyHrs.ToString();
    statusLblWeek.ToolTipText = " Consumption of this week " + statusLblWeek.Text;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-10
      • 2016-02-01
      • 1970-01-01
      • 2012-04-04
      • 1970-01-01
      相关资源
      最近更新 更多