Sha*_*que 12 c# winforms statusbaritem
我在状态栏中有几个标签,我在其上设置了工具提示.
statusLblWeek.Text = weeklyHrs.ToString();
statusLblWeek.ToolTipText = " Consumption of this week " + statusLblWeek.Text;
Run Code Online (Sandbox Code Playgroud)
状态标签显示正确但工具提示未显示.为什么?
Bra*_*mir 23
使用属性StatusStrip.ShowItemToolTips
如果为StatusStrip显示工具提示,则为真; 否则,错误.默认值为false.
statusStrip1.ShowItemToolTips = true;
statusLblWeek.Text = weeklyHrs.ToString();
statusLblWeek.ToolTipText = " Consumption of this week " + statusLblWeek.Text;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5194 次 |
| 最近记录: |