Moving graphics around a form in VB Express - TechRepublic
Question
January 10, 2009 at 10:46 AM
widware

Moving graphics around a form in VB Express

by widware . Updated 17 years, 5 months ago

I’m a newbie to VB 2005 Express. I’m trying to move a small graphic around a form periodically in code. I want to be able to set a color in the the graphic to transparent so there are no edges on the graphic visible. I know how to set up an ImageList and set the transparency properties in it. If I put a member of the Imagelist in a picturebox then I can move the entire picturebox around the form by setting its location property but I will also see the non-transparent background of the picturebox itself on my form so that’s no good. I can set the background image of the form to the member of the imagelist but then I can’t move the image around the form. Can anybody show me how to move an image with transparency around a form?

This discussion is locked

All Comments