AdorableVB
AdorableVB

Reputation: 1393

Background image not showing in winforms

Check this link this is exactly what my problem is..

enter image description here

At Form_Load:

Me.BackgroundImage = My.Resources.black_gradient_background

I even deleted back color property at designer, it reverted to default, but..

still...
enter image description here
But the image is there, I can see it when loading the form, then it disappears, its like in the back. Why is that? I tried to create new form, added that background image, its working fine. What did I do? >.<

UPDATE I tried Restarting VS, did it to another form. look what happened: enter image description here
The BGimage only appeared on the left groupBox. O_o

Upvotes: 2

Views: 6210

Answers (2)

Adil Aziz
Adil Aziz

Reputation: 11

Try changing form layout from RtoL to LtoR

Upvotes: 1

OSKM
OSKM

Reputation: 728

As Hans says you are blocking the image with other controls, you need to set the other controls that you want the image to show through as transparent Control.BackColor = Color.Transparent.

Upvotes: 0

Related Questions