When you set an item to transparent what it actually does is take on the background color of the control you have it placed on. That being said, if you have the form's background color as the transparency key and you set a controls (like your picturebox) background color to transparent, it will take on the bg color of the form and will cause the results you see there. Try just making the picturebox sizemode to auto so that it is only the size of the png in it.
Main Topics
Browse All Topics





by: trideepPosted on 2009-10-27 at 03:13:45ID: 25670675
Insted of ur mail picture box use panel and set panel's background image
then put small picture box in the panel with backcolor = transparent