C#Windows窗体应用程序透明按钮 [英] C# Windows Form Application Transparent button

查看:428
本文介绍了C#Windows窗体应用程序透明按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新的C#。我想创建一个隐藏的按钮,但他们是点击能在C#Windows窗体应用程序。有没有办法?我试图背景色为透明的,但它是透明的,这并不改变的事实

I'm new to C#. I'd like to create an invisible button, but they are click-able in C# windows form application. Is there a way? I tried BackColor to Transparent, but that does not change the fact that it is transparent

推荐答案

其简单的尝试。

点击您要设为透明的按钮。
选择的FlatStyle 从属性,并将其设置为弹出
现在背景色属性更改为透明

Click the button that you want to make transparent. Select FlatStyle from Properties and set it to popup Now change the BackColor property to Transparent.

这将使按钮透明。

然而,如果你想让它透明超过图片框这个方法不会工作。

However if you want to make it transparent over a PictureBox this method wont work..

它仅适用于正常的背景和背景图像。
希望工程....

It works only on normal backgrounds and background images. Hope it works....

这篇关于C#Windows窗体应用程序透明按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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