Question

Locked

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.

3 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.
http://books.google.com/books?id=P52zBpD0JeYC&pg=PA414&lpg=PA414&dq=Vb+express+2005+sprites+with+image+list&source=web&ots=nfTJOp41et&sig=uFOe3hrsjrYaIklNcKZ4m6jnAno&hl=en&sa=X&oi=book_result&resnum=3&ct=result#PPA413,M1

Collapse -

response

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

hope this helps

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

Related Discussions

Related Forums