TRANSPARENT FORM BACKGROUND
To make windows Form transparent we need to add this code.
using System;
using System.Drawing;
using System.Windows.Forms;
namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.BackColor = Color.LimeGreen;
this.TransparencyKey = Color.LimeGreen;
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
To make windows Form transparent we need to add this code.
using System;
using System.Drawing;
using System.Windows.Forms;
namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.BackColor = Color.LimeGreen;
this.TransparencyKey = Color.LimeGreen;
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
No comments:
Post a Comment