Question Locked
0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
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?
3 replies
by widware Accepted solution
Clarifications
by john.jacobson Accepted solution
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
by john.jacobson Accepted solution
hope this helps
This discussion is closed to new replies.
Trending Hardware posts
Sort by Trending
Question Locked
Setting up a wifi bridge with switch correctly
0 helpful
5 replies
Question Locked
Experiencing Bottleneck with RTX 4060 + i5-12400F - Need Advice
0 helpful
5 replies
Question Locked
Keyboard
0 helpful
3 replies
Question Locked
Core i7 12700KF or Core i7 12700F ?
0 helpful
9 replies
Question Locked
Looking for honest opinions on gaming PC
0 helpful
5 replies