C# How can I change the BackColor of a ToolTip wit

2019-09-15 05:33发布

问题:

I saw this question: Change winform ToolTip backcolor but the top answer solution did not work...
I set isBalloon = true, is that the problem? How can I still change the BackColor?

回答1:

The trick is to modify the DrawToolTopEventArgs in the OnDraw method. Take a look at this post on MSDN forums: http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/77cf51ac-1c52-4f2e-8ab8-42c4ba864b7d