mirror of
https://github.com/colhountech/DarkUI.Net5.git
synced 2025-07-03 07:39:28 +03:00
33 lines
730 B
C#
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
|
|
}
|
|
}
|