的WinForms - 状态栏标签的提示不显示 [英] winforms - tooltip of statusbar labels not showing up

查看:198
本文介绍了的WinForms - 状态栏标签的提示不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一对夫妇在状态栏,关于这一点我已经设置提示标签。

I have a couple of labels in status bar, on which I have set tooltip.

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

状态标签显示正确,但提示没有显示出来。为什么呢?

Status labels are displayed correctly but the tooltip is not showing up. Why?

推荐答案

使用属性的 StatusStrip.ShowItemToolTips

如果显示的工具提示StatusStrip中真实的;否则为false。该默认为false

True if ToolTips are shown for the StatusStrip; otherwise, false. The default is false.

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

这篇关于的WinForms - 状态栏标签的提示不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆