vincentchang
Newcomer
- Joined
- Oct 7, 2005
- Messages
- 6
Dear all,
I have a problem when dealing with transparent key of main form and controls on the form.
I set an background image for a form and then set the TransparencyKey of the form to Color.Red so that the red region on the background image becomes transparent. I placed picturebox on the form and the picturebox is used to display image selected by user. I found that the red region in the image of the picturebox becomes transparent as well but what I want to do is only make the red region of the main form to be transparent and picturebox remains unchanged so that the picture will be displayed correctly.
Could anyone suggest how to make controls on the form remain unchanged when transparentkey of the form is set.
Thank you very much in advance!
Vincent
I have a problem when dealing with transparent key of main form and controls on the form.
I set an background image for a form and then set the TransparencyKey of the form to Color.Red so that the red region on the background image becomes transparent. I placed picturebox on the form and the picturebox is used to display image selected by user. I found that the red region in the image of the picturebox becomes transparent as well but what I want to do is only make the red region of the main form to be transparent and picturebox remains unchanged so that the picture will be displayed correctly.
Could anyone suggest how to make controls on the form remain unchanged when transparentkey of the form is set.
Thank you very much in advance!
Vincent