transparency - Visual Basic - Drawing an image on a panel underneath an object -
i have panel multiple pictureboxes in it, when clicked change them image in picturebox. @ same time when image changed, want draw same image on panel @ location of picturebox. way, when transparent object overlaid on top of pictureboxes (showing parent, in case panel) appears if pictureboxes still there. not sure how go doing this,
not sure if achieve you're looking for...
private sub panel1_paint(sender system.object, e system.windows.forms.painteventargs) handles panel1.paint each pb picturebox in panel1.controls.oftype(of picturebox)() if not isnothing(pb.image) e.graphics.drawimage(pb.image, pb.location) end if next end sub
Comments
Post a Comment