When i run my code, the picture box has a background colour, even though I have set the background colour to transparent in the properties window. any ideas?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume you’re overlapping a
PictureBoxover some other control and expecting to see through thePictureBox. That’s not how it works – controls with transparent backgrounds are only transparent relative to their parent, not other controls. You could draw them using GDI+ by overriding theOnPaintmethod of your form:Also, it seems that people are mostly looking for this functionality to make a game. Are you making a game? Please learn graphics before making a game if this is the case. There are many good tutorials out there.