nakracreative
Well-known member
Is it possible to have transparent labels in vb.net? Means if we place a label1 on another label, say label2, then will the text of label2 be visible ?
Label1.BackgroundImage = Image.FromFile(Application.StartupPath & "\backGround.jpg")
Dim canvas As Graphics = Graphics.FromImage(Label1.BackgroundImage)
Dim myString AsString = "DROP SHADOW EFFECT"
'this will create the "shadow", offset 4 pixels from the second position
canvas.DrawString(myString, New Font("Verdana", 20, FontStyle.Bold), New SolidBrush(Color.Black), 10, 10)
'now draw over previous text
canvas.DrawString(myString, New Font("Verdana", 20, FontStyle.Bold), New SolidBrush(Color.White), 6, 6) 'set offset
canvas.Dispose()