开发者

winforms - tooltip of statusbar labels not showing up

开发者 https://www.devze.com 2023-01-30 11:45 出处:网络
I have a couple of labels in status bar, on which I have set tooltip. statusLblWeek.Text = weeklyHrs.ToString();

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

statusLblWeek.Text = weeklyHrs.ToString();
statusLblWeek.ToolTipText = " Consumption of t开发者_高级运维his week " + statusLblWeek.Text;

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


Use property StatusStrip.ShowItemToolTips

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;
0

精彩评论

暂无评论...
验证码 换一张
取 消