Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Getting Icons From ImageManager For Form
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Getting Icons From ImageManager For Form

 Post Reply Post Reply
Author
Message
DDJJ View Drop Down
Senior Member
Senior Member


Joined: 13 December 2004
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote DDJJ Quote  Post ReplyReply Direct Link To This Post Topic: Getting Icons From ImageManager For Form
    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!

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2006 at 12:34pm
You can do this in Beta 2.  See IconsSample for sample code.
Back to Top
DDJJ View Drop Down
Senior Member
Senior Member


Joined: 13 December 2004
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote DDJJ Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
gshawn View Drop Down
Senior Member
Senior Member


Joined: 04 October 2004
Status: Offline
Points: 227
Post Options Post Options   Thanks (0) Thanks(0)   Quote gshawn Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2006 at 7:26pm
Back to Top
DDJJ View Drop Down
Senior Member
Senior Member


Joined: 13 December 2004
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote DDJJ Quote  Post ReplyReply Direct Link To This Post 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.

 

 

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.