Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/282.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 为什么工具提示不显示在WebBrowser控件中?_C#_Winforms_Tooltip_Webbrowser Control - Fatal编程技术网

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时,工具提示出现