Print Page | Close Window

VB6: How to load 32bit alpha icons for PictureBox?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=21670
Printed Date: 15 May 2024 at 9:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: VB6: How to load 32bit alpha icons for PictureBox?
Posted By: Alexey2
Subject: VB6: How to load 32bit alpha icons for PictureBox?
Date Posted: 23 May 2013 at 5:48am
I use standard VB6 controls: PictureBox or Image.
Is it possible to load 32bit alpha icons to it?
 
When I use the following code:
 
ImageManager1.Icons.LoadIcon "N:\ICON\48.ico", 1, 0
Image1.Picture = ImageManager1.Icons.GetImage(1, 48).CreatePicture(xtpImageNormal)
 
The image is loaded but with black background. How to remove this black background?
Or maybe we can use some similar codejock control instead of standard PictureBox or Image?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net