Print Page | Close Window

Getting Icons From ImageManager For Form

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=3856
Printed Date: 17 November 2024 at 9:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Getting Icons From ImageManager For Form
Posted By: DDJJ
Subject: Getting Icons From ImageManager For Form
Date Posted: 23 March 2006 at 4:36pm

When opening a child form, I want to retrieve an icon from the ImageManager object on the main form to use as the child form's icon.  Something along the following lines:

Set oIcon = frmMain.ImageManager2.Icons.GetImage(102, 16)
Me.Icon = oIcon

I get a Type error on this code since the oIcon object is an ImageManagerIcon object.

Is what I am trying to do even possible with the ImageManager control?

Thanks!




Replies:
Posted By: SuperMario
Date Posted: 03 April 2006 at 12:34pm
You can do this in Beta 2.  See IconsSample for sample code.


Posted By: DDJJ
Date Posted: 03 April 2006 at 3:47pm

Thanks, SuperMario.

The IconsSample pretty much uses the same code I'm trying to use, but it still doesn't work (at least if I'm using the code your were thinking of in the sample).  Maybe it's not possible to assign anything better than 16 color icons to forms in VB6?



Posted By: gshawn
Date Posted: 03 April 2006 at 7:26pm

Check this out DDJJ:

http://www.vbaccelerator.com/home/VB/Tips/Setting_the_App_Icon_Correctly/article.asp - http://www.vbaccelerator.com/home/VB/Tips/Setting_the_App_Ic on_Correctly/article.asp



Posted By: DDJJ
Date Posted: 03 April 2006 at 9:19pm

Thanks, gshawn!

I can't test it yet, but that looks like it will get me moving in the right direction.

 

 




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