Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 13th, 2005, 04:22 PM
Registered User
 
Join Date: Jul 2005
Location: HOUSTON, TX, USA.
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default VB6 - PictureBox and Image controls

I am trying to build a simple little game with some people walking around, but when I overlap one image with another, the whole area of
the control overlaps, so I see this white rectangle with the man in
the middle moving around.

I didn't find any transparent options on the image control, so I tried with a picturebox control instead, but I cannot seem to get it working.

Does anyone know how to do this?

Thanks,

Ole
Reply With Quote
  #2 (permalink)  
Old July 14th, 2005, 01:36 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Alameda, ca, USA.
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You have to use image formats (like icons) that allow transparency. Or, if using bitmaps, use an unique color for the transparency, load them in a ListImages control, and select that color to be transparent
Marco
Reply With Quote
  #3 (permalink)  
Old July 14th, 2005, 02:20 PM
Registered User
 
Join Date: Jul 2005
Location: HOUSTON, TX, USA.
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default

Okay, I'm lost - PLEASE HELP.

The only reference that looks VB6-okay is the bitmap reference to ImageList object in the Microsoft Windows Common Controls 6.0 component, and even though I can load all eight animations for my little moving guy (8 .bmp files) and specify backcolor and mask color, I see NOTHING when the program is running.

Can you please guide me through what I need to do?

Thanks in advance,

Ole
Reply With Quote
  #4 (permalink)  
Old July 14th, 2005, 05:49 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Alameda, ca, USA.
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sorry but I have used only icon images, never bitmaps. drawing with a transparent background is not an easy task even with API, I remember reading articles about that. for that reason, I use only icons. sorry I can't help you with bitmaps
Marco
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while loading image to picturebox owen_xgy VS.NET 2002/2003 0 March 28th, 2008 09:49 AM
Name of image in PictureBox purefan Beginning VB 6 5 November 27th, 2006 02:20 PM
converting image in picturebox to byte[] connect2sandep General .NET 0 July 26th, 2005 05:31 PM
VB6 to .NET User Controls mckly VB.NET 2002/2003 Basics 1 June 23rd, 2004 10:39 AM
problem in using Image controls harini19 VB How-To 1 March 5th, 2004 02:34 PM



All times are GMT -4. The time now is 04:17 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.