Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

winforms - tooltip of statusbar labels not showing up

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?

like image 866
Sharique Avatar asked Dec 13 '10 09:12

Sharique


1 Answers

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;
like image 80
Branimir Avatar answered Oct 23 '22 20:10

Branimir