我想在悬停一个按钮时,仍然像30%透明(所以你可以从窗体中看到的背景图像),但仍然看到一些颜色的效果..70%不透明颜色到一个按钮WinForms
我试过,但这个只是给了我一个黑色空白:
private void roundedButton2_MouseEnter(object sender, EventArgs e)
{
roundedButton2.UseVisualStyleBackColor = false;
roundedButton2.FlatAppearance.MouseOverBackColor = Color.FromArgb(100, Color.Black);
}
private void roundedButton2_MouseLeave(object sender, EventArgs e)
{
roundedButton2.UseVisualStyleBackColor = true;
roundedButton2.BackColor = Color.Transparent;
}
这里我有按钮的鼠标移出和鼠标,所以你可以看到我有什么。 编辑:解决它....现在上面的代码不正是我想要的。
到目前为止您尝试了什么? –
你能向我们展示形式的图像 – Lekve
我希望Button在表单上坐着__directly__ ..? – TaW