工具提示延迟不起作用 [英] Tooltip delay not working

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

问题描述

大家好,

我正在VB.NET 3.5中开发应用程序,并使用了Sharp的开发工具.

有一个带有2个按钮的表单.我正在使用ToolTip组件显示工具提示.
我需要显示标题和工具提示(对于按钮,标题和工具提示是不同的).
在表单加载中,我已使用命令将工具提示分配给两个按钮

Hi all,

I am developing a application in VB.NET 3.5 and using sharp develop.

There is a form which has 2 buttons. I am using ToolTip component to show the tool-tip.
I need to show the title along with tool-tip (for both button the title and tool-tip are different).
On form load I have assign the tool-tip to both the button using the command

CSearch.SetToolTip(Me.Button5,"Add new reminders.")


CSearch-是工具提示的名称.

当鼠标移到该按钮上时,我使用了按钮的鼠标悬停事件来设置标题


CSearch - is the name of the tool-tip.

And when the mouse move over this button I have used the mouse hover event of the button to set the title

CSearch_Tooltip.ToolTipTitle = "Reminders (F5)"


我想在鼠标移到工具提示后2秒钟显示工具提示.我已经设置了Csearch的属性


I want to show the tool-tip after 2 sec once mouse move over it. I have set the property of Csearch

Automatic Delay: 2000
Auto Pop Delay: 30000
InitialDelay: 2000
ReshowDelay 1000



但是,当我运行该应用程序并将鼠标移到该按钮上时,该工具提示将立即显示,而不会出现任何延迟(这是我不希望的).当我将鼠标从按钮上移开并再次将鼠标指针移到该按钮上时,它会在2秒钟后显示.

我希望每次显示工具提示时都应显示2秒延迟.



But when I run the application and move mouse over the button the tool tip is being displayed immediately without any delay (which I don''t want). When I take mouse away from the button and again move the mouse pointer over it then it shows after 2 sec.

I want that every time when the tool-tip is displayed it should show 2 sec delay.

推荐答案

如果要设置
If you are setting the delay property of the ToolTip[^] in the mouse hover event, move it to the form load.


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

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