DarkUI.Net5/DarkUI/Forms/DarkTranslucentForm.cs
2015-12-04 19:06:35 +00:00

33 lines
730 B
C#

using System.Drawing;
using System.Windows.Forms;
namespace DarkUI.Forms
{
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)
{
StartPosition = FormStartPosition.Manual;
FormBorderStyle = FormBorderStyle.None;
Size = new Size(1, 1);
ShowInTaskbar = false;
AllowTransparency = true;
Opacity = opacity;
BackColor = backColor;
}
#endregion
}
}