![]()  | 
 
Getting Icons From ImageManager For Form | 
 
    Post Reply  
   | 
  
| Author | |
   
   DDJJ  
   
   Senior Member  
   Joined: 13 December 2004 Status: Offline Points: 143  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: Getting Icons From ImageManager For FormPosted: 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) 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!  | 
 |
![]()  | 
 |
   
   SuperMario  
   
   Senior Member  
    
   Joined: 14 February 2004 Status: Offline Points: 18057  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 03 April 2006 at 12:34pm | 
 
| 
   
    
   You can do this in Beta 2.  See IconsSample for sample code.
    
   
   | 
 |
![]()  | 
 |
   
   DDJJ  
   
   Senior Member  
   Joined: 13 December 2004 Status: Offline Points: 143  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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?  | 
 |
![]()  | 
 |
   
   gshawn  
   
   Senior Member  
   Joined: 04 October 2004 Status: Offline Points: 227  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 03 April 2006 at 7:26pm | 
 
![]()  | 
 |
   
   DDJJ  
   
   Senior Member  
   Joined: 13 December 2004 Status: Offline Points: 143  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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. 
 
  | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |