工具提示不显示 [英] Tool tip not displaying

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

问题描述

大家好,

我已拖动n放下工具提示控件,并将属性设置如下所示

Hi All,

I have drag n drop a tooltip control and set the properties as below

Active =true
AutomaticDelay=500
Autopopupdelay=5000
BackColor=Info
Forecolor=Infotext
GenerateMember=true
InitialDelay=500
IsBaloon=false
Modifiers=private
ownerdraw=false
Reshow Delay=100
ShowAlways=true
Use Animation=true
Usefading=true


我在表单上放置了标签,并在tooltiptext属性下输入了显示日期"
但是当我运行表单时,当我将鼠标悬停在标签上时,它不显示工具提示.
请帮忙!!!


I placed a label on the form and under tooltiptext property i entered "Display date"
but when i ran the form and when i mouse hover on the label it doesnt display the tool tip..I am going crazy

Please help!!!

推荐答案

在Form_load put

in Form_load put

toolTip1.SetToolTip(this.label1, "Display Date");


使用以下代码代替为控件设置ToolTipText属性:
Instead of setting the ToolTipText property for your control, use this code:
yourToolTipControl.SetToolTip(this.yourControl, "Your text");



文本将显示为yourControl.您可以在所有控件上多次调用SetToolTip.



The text will be displayed for yourControl. You can call SetToolTip as many times as you want on all your controls.


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

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