DarkUI.Net5/DarkUI/Forms/DarkTranslucentForm.cs
2015-09-19 15:30:09 +01:00

31 lines
635 B
C#

using System.Drawing;
using System.Windows.Forms;
namespace DarkUI
{
internal class DarkTranslucentForm : Form
{
#region Property Region
protected override bool ShowWithoutActivation
{
get { return true; }
}
#endregion
#region Constructor Region
public DarkTranslucentForm(Color backColor, double opacity = 0.6)
{
FormBorderStyle = FormBorderStyle.None;
ShowInTaskbar = false;
AllowTransparency = true;
Opacity = opacity;
BackColor = backColor;
}
#endregion
}
}