C# 如何使用 isBalloon = true 更改工具提示的背景颜色? [英] C# How can I change the BackColor of a ToolTip with isBalloon = true?

查看:34
本文介绍了C# 如何使用 isBalloon = true 更改工具提示的背景颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到了这个问题:更改 winform ToolTip 背景色 但最佳答案解决方案不起作用...
我设置了 isBalloon = true,这是问题吗?我怎样才能更改 BackColor?

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?

推荐答案

诀窍是修改 OnDraw 方法中的 DrawToolTopEventArgs.看看 MSDN 论坛上的这篇文章:http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/77cf51ac-1c52-4f2e-8ab8-42c4ba864b7d

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

这篇关于C# 如何使用 isBalloon = true 更改工具提示的背景颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆