Print Page | Close Window

PNG Compatibility

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=11351
Printed Date: 15 November 2024 at 5:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: PNG Compatibility
Posted By: giro21k
Subject: PNG Compatibility
Date Posted: 08 July 2008 at 6:54pm
i want import PNG files to Codejock Product. Is Posible.
 
Thanks
 
Excuse me english



Replies:
Posted By: ijwelch
Date Posted: 08 July 2008 at 9:14pm
Yeah.

You can add png to ImageManager at runtime using LoadBitmap or LoadBitmapFromResource (tip-the resource type needs to be 'PNG').


Posted By: giro21k
Date Posted: 01 August 2008 at 7:28pm
how set resource type in resources editor of visual basic 6?
 
Thanks


Posted By: ijwelch
Date Posted: 02 August 2008 at 1:01am
You can't. The VB6 resource editor is just an outdated and pretty useless add-in.

You need to compile your own .res file. You can do this using a MS tool called RC.exe. Here's a few links (the first one is easiest to understand):

http://www.darinhiggins.com/2007/04/22/VisualBasic6AndResourceFiles.aspx - http://www.darinhiggins.com/2007/04/22/VisualBasic6AndResourceFiles.aspx
http://www.vbaccelerator.com/home/vb/code/Libraries/Resources/Using_RC_EXE/article.asp - http://www.vbaccelerator.com/home/vb/code/Libraries/Resources/Using_RC_EXE/article.asp

I've attached a zip containing a dead simple resource project.

uploads/20080802_010054_Res_Files.zip - uploads/20080802_010054_Res_Files.zip



Posted By: TShriver
Date Posted: 08 August 2008 at 4:34pm

Do you know if there is a way to use the LoadBitmapFromResource  command and see these images while in VB's IDE.  Compiling to debug is a REAL pain.  I have other 3rd party controls which don't have a problem with referencing image resources from within the IDE.

Thank you in Advance!

Tim



Posted By: ijwelch
Date Posted: 27 August 2008 at 9:31pm
Add resources to a dll. Then you can use the code in this thread to load them:

https://forum.codejock.com/forum_posts.asp?TID=9901&KW= - https://forum.codejock.com/forum_posts.asp?TID=9901&KW=

This works at both design time and runtime.



Posted By: TShriver
Date Posted: 28 August 2008 at 8:43am

ijwelch,

Thank you for your help!
 
Regards,
 
Tim



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