public partial class BlackScreen : Form
{
Timer MakeTopMost = new Timer();
public BlackScreen()
{
InitializeComponent();
MakeTopMost.Enabled = true;
MakeTopMost.Tick += new EventHandler(MakeTopMost_Tick);
this.FormBorderStyle = FormBorderStyle.None;
this.StartPosition = FormStartPosition.Manual;
this.Location = new Point(0,0);
this.Size = Screen.PrimaryScreen.Bounds.Size;
this.BackColor = Color.Black;
}
void MakeTopMost_Tick(object sender, EventArgs e)
{
if (!DisableTaskManager)
{
DisableTaskManager = true;
}
}
private bool DisableTaskManager
{
get { return this.TopMost; }
set { this.TopMost = value; }
}
private void BlackScreen_Click(object sender, EventArgs e)
{
Application.Exit();
}