积极答复者
C# WinForm Tooltip 如何去除其阴影效果

问题
答案
-
Hi Healthy,
欢迎来到MSDN 论坛!
- 在System.Windows.Forms下,我们需要自定义ToolTip控件来达到这一目标。
- 在System.Windows.Controls命名空间下的 ToolTip,可以设置它的属性 HasDropShadow
为false来去掉阴影。
请参考下面的链接,以便在Winform应用程序中使用WPF控件:
http://dotnet.dzone.com/articles/hosting-wpf-controls-winforms?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+zones/dotnet+(.NET+Zone
祝您一切顺利!
============================================
Third party disclaimer
This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information is found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
Yoyo Jiang[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已建议为答案 caozhyMVP 2011年9月20日 4:50
- 已标记为答案 Dummy yoyoModerator 2011年9月22日 8:55
全部回复
-
使用SetToolTip方法
http://www.cnblogs.com/scottckt/archive/2007/12/05/983882.html
ToolTip tooltip = new ToolTip(); tooltip.SetToolTip(textBox1, "xxx!");
http://blog.csdn.net/zx13525079024 -
Hi Healthy,
欢迎来到MSDN 论坛!
- 在System.Windows.Forms下,我们需要自定义ToolTip控件来达到这一目标。
- 在System.Windows.Controls命名空间下的 ToolTip,可以设置它的属性 HasDropShadow
为false来去掉阴影。
请参考下面的链接,以便在Winform应用程序中使用WPF控件:
http://dotnet.dzone.com/articles/hosting-wpf-controls-winforms?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+zones/dotnet+(.NET+Zone
祝您一切顺利!
============================================
Third party disclaimer
This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information is found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
Yoyo Jiang[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已建议为答案 caozhyMVP 2011年9月20日 4:50
- 已标记为答案 Dummy yoyoModerator 2011年9月22日 8:55