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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
FroglegPosted Jun 30, 2012, 5:36 PM
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);
}
}
}