C# How can I change the BackColor of a ToolTip with isBalloon = true?

ε祈祈猫儿з 提交于 2019-12-25 02:41:47

问题


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



来源:https://stackoverflow.com/questions/13008830/c-sharp-how-can-i-change-the-backcolor-of-a-tooltip-with-isballoon-true

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!