EN
C# / Windows Forms - invisible window (WinForms)
6
points
In this short article, we would like to show how to create invisible window using Windows Forms in C# / .NET.
Quick solution:
using System;
using System.Drawing;
using System.Windows.Forms;
public partial class InvisibleForm : Form
{
public InvisibleForm()
{
this.ShowInTaskbar = false;
this.FormBorderStyle = FormBorderStyle.None;
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
this.Size = Size.Empty;
}
}