Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 13th, 2005, 03:22 PM
Registered User
 
Join Date: Jul 2005
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
 
Old July 14th, 2005, 12:36 PM
Friend of Wrox
 
Join Date: Jun 2003
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
 
Old July 14th, 2005, 01:20 PM
Registered User
 
Join Date: Jul 2005
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
 
Old July 14th, 2005, 04:49 PM
Friend of Wrox
 
Join Date: Jun 2003
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





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 08: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 04:31 PM
VB6 to .NET User Controls mckly VB.NET 2002/2003 Basics 1 June 23rd, 2004 09:39 AM
problem in using Image controls harini19 VB How-To 1 March 5th, 2004 02:34 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.