Как сделать у Label прозрачный backColor - winforms
я написал код на создания label и сделал задний фон прозрачным но на деле он просто чорный .
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp11
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
var lb = new Label
{
BackColor = Color.Transparent,
Text = "X",
Location = new Point(10 , 10),
ForeColor = Color.Black
};
this.Controls.Add(lb);
}
}
}
