Posts

Showing posts with the label apps

How to create a transparent window in Windows Form Application

In this post we are going to see how to create a transparent Form in Windows Form application.  1) Click on File -> New Project and select Windows Forms Application . 2) Click on the Form and select View Code  3) Type the following code in the constructor. this.TransparencyKey = (BackColor); Now your entire code will be public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();             this.TransparencyKey = (BackColor);         }     }  4)Build and run your application either by CTRL+F5 or click on Start.    5)You will get a transparent form as shown below.    6)To remove the border and to display a transparent image on ...