我是C#的新手.我想创建一个隐形按钮,但它们可以在C#windows窗体应用程序中单击.有办法吗?我尝试将BackColor设置为Transparent,但这并没有改变它是透明的事实
小智 17
这很简单.
单击要使其透明的按钮.FlatStyle从"属性"中选择并将其设置为弹出窗口
现在将BackColor属性更改为Transparent.
这将使按钮透明.
但是,如果你想让它在PictureBox这个方法上透明不会工作..
它仅适用于普通背景和背景图像.希望它有效....
小智 7
buttonLink.FlatStyle = FlatStyle.Flat;
buttonLink.BackColor = Color.Transparent;
buttonLink.FlatAppearance.MouseDownBackColor = Color.Transparent;
buttonLink.FlatAppearance.MouseOverBackColor = Color.Transparent;
Run Code Online (Sandbox Code Playgroud)