C# 为什么工具提示不显示在WebBrowser控件中?
我为C# 为什么工具提示不显示在WebBrowser控件中?,c#,winforms,tooltip,webbrowser-control,C#,Winforms,Tooltip,Webbrowser Control,我为WebBrowser控件指定了工具提示值,但工具提示未显示 // Create the ToolTip and associate with the Form container. ToolTip toolTip2 = new ToolTip(); // Set up the delays for the ToolTip. toolTip2.AutoPopDelay = 5000; toolTip2.InitialDelay = 3000; toolTip2.ReshowDelay = 5
WebBrowser
控件指定了工具提示
值,但工具提示未显示
// Create the ToolTip and associate with the Form container.
ToolTip toolTip2 = new ToolTip();
// Set up the delays for the ToolTip.
toolTip2.AutoPopDelay = 5000;
toolTip2.InitialDelay = 3000;
toolTip2.ReshowDelay = 500;
// Force the ToolTip text to be displayed whether or not the form is active.
toolTip2.ShowAlways = true;
// Set up the ToolTip text for the Button and Checkbox.
toolTip2.SetToolTip(this.WebBrowser1, "My Web Browser");
要显示的工具提示必须是HTML页面的一部分。您可以使用该属性。例如:
<p><abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>
<a title="Click on me" href="http://blah" target="_self">I am a link</a>
当您将鼠标悬停在WebBrowser控件上时,它将自动显示您的工具提示。我会在浏览器中显示工具提示干扰网站我希望当鼠标指针指向链接并包含此链接的URL时,工具提示出现