如何使用vb.net对Windows桌面应用程序进行悬停效果 [英] How can I make Hover effects to windows desktop application using vb.net

查看:99
本文介绍了如何使用vb.net对Windows桌面应用程序进行悬停效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,我几乎不需要帮助,如何使用vb.net代码在Windows桌面应用程序中为按钮提供鼠标悬停效果?这是可能的吗,我们不能应用CSS或其他设计使其看起来更好吗?

谢谢
Ganesh

Hi friends, I have small need of help, How can I make mouse hover effect for buttons in Windows Desktop Application using vb.net code? Is this is possible and can''t we apply css or some other designs to make it more look better.

Thanks
Ganesh

推荐答案

否,需要CSS

Windows应用程序控件提供大量事件

创建您的控件的两个事件
1.鼠标输入
2.鼠标离开

现在,例如在鼠标中输入事件
No, CSS Required

Windows Application Controls Provides lots of events

Create Two event of your control
1. Mouse enter
2. Mouse Leave

Now, For example in mouse enter event
YourControl.BackColor = Color.Green


在鼠标离开"事件中


in Mouse Leave event

YourControl.BackColor = Color.Transperent


祝您编码愉快!
:)


Happy Coding!
:)


这篇关于如何使用vb.net对Windows桌面应用程序进行悬停效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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