Languages
[Edit]
EN

C# / Windows Forms - invisible window (WinForms)

6 points
Created by:
Dharman
518

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;
    }
}

 

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join