i want do transparent this label
Picture Box is Chile COntrol of Form1
Label also child COntrol of Form1
Label not a child control PicureBox so how can i set transparent of Label for PicureBox
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
FroglegRank #1,020 · 1.9K reputationPosted Jun 30, 2012, 1:36 PM EDT
public partial class Form1 : Form
{
Image img;
Font myFont = new Font("Arial", 12);
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
img = Image.FromFile("test.png");
}
private void Form1_Paint(object sender, PaintEventArgs e)
{
e.Graphics.DrawImage(img, 200,200);
e.Graphics.DrawString("This is Kunal", myFont, Brushes.White, 350, 260);
}
}
}