Click here to Skip to main content
15,902,276 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have placed a background picture for the form and my aim is to make the specific label on the form transparent. I tried a few ways and applied a few sample code but none of them work out. If you give me a sample, I would really appreciate it.

Thanks.


'That is how I place a backgroudn picture for teh form

VB
Protected Overrides Sub OnPaintBackground(ByVal e As PaintEventArgs)
    MyBase.OnPaintBackground(e)
    e.Graphics.DrawImage(My.Resources.form, 0, 0)
End Sub
Posted

1 solution

I expect you will find this informative:
How to Use Transparent Images and Labels in Windows Forms[^]

Hope it works out... this should be quite similar on Windows Mobile

Happy coding :-D
Espen Harlinn
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900