Moving graphics around a form in VB Express

By widware ·
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 conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

What I teach in my Computer class

by john.jacobson In reply to Moving graphics around a ...

Create a new Windows Forms application. Add a new class to the project named Sprite.vb, and use the Public Class Sprite syntax.
Go to this link and begin to read at page 413.,M1

Collapse -


by john.jacobson In reply to What I teach in my Comput ...

hope this helps

Back to Hardware Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums