That is what I have already tried. It will only set the picturebox background to the forms background color. And that is not transparent, since I have different pictures on the form and my picturebox will move over the form and over the other pictures (road, grass, bridges). But all that it will show is my character and he is inside a grey box.
The grey color is the default forms color.
I really need to get rid of that box...
Suggestions?
Main Topics
Browse All Topics





by: zinnoPosted on 2004-04-09 at 13:31:08ID: 10794125
Private pbImg As New PictureBox
ent.gif") e parent
kColor)" works if have the exact color, in RGB aka blue background is bm.MakeTransparent(0,0,255 )
Private bitmap As Bitmap
bitmap = New Bitmap("WaterDropsTranspar
With pbImg
.SizeMode = PictureBoxSizeMode.AutoSiz
.Location = New Point(724, 96)
.Image = bitmap
.BackColor = System.Drawing.Color.Trans
End With
Me.Controls.Add(pbImg )
be sure that u have a transparent image. "bm.MakeTransparent(pb.Bac