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:
xxxxxxxxxx
1
using System;
2
using System.Drawing;
3
using System.Windows.Forms;
4
5
public partial class InvisibleForm : Form
6
{
7
public InvisibleForm()
8
{
9
this.ShowInTaskbar = false;
10
this.FormBorderStyle = FormBorderStyle.None;
11
}
12
13
protected override void OnLoad(EventArgs e)
14
{
15
base.OnLoad(e);
16
17
this.Size = Size.Empty;
18
}
19
}