View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Rick Rothstein \(MVP - VB\)[_1768_] Rick Rothstein \(MVP - VB\)[_1768_] is offline
external usenet poster
 
Posts: 1
Default imagelist filling at designtime

I'm not sure if the ImageList control you are talking about is the one I
have available in my system or not. I have VB6 installed on my system (so
I'm not sure if it installed the ImageList control I'm using or not)... the
ImageList control that I get to add to the Toolbox is listed in the
Additional Controls dialog as...

Microsoft ImageList Control 6.0 (SP6)

If that is the one you are using, then when I add it my UserForm, the
Properties window has an entry named Custom which allows you to add images
at design time.

Rick


"Ernst Schuurman" wrote in message
...
Hi XL-guru's

First I like to express my admiration for your expertise.
I read the posts in this NG for 5 months on a daily basis and I've learned
so much allready.
It's both interesting and educational to see how different approaches
solve one problem.
But now it's my turn to ask for your help.

I need to fill an imagelist with icons that I will use for a treeview in a
userform.
Using Ron de Bruin's Googlesearch I found an exellent example on Chip
Pearson's site.
Great tool that I use many times that Googlesearch.(thanks Ron)

From Chips example I could create my solution as disired, but I am lost on
this one:

the imagelist containing the icons is now filled at runtime.
Because in my application the imagelist contents will not change I want to
fill it once at disigntime.

I found some explanation on different sites, but can't reproduce it.

The dialog that should appear when you choose properties does not appear
when using an imagelist on a userform.
I do get this dialog when the imagelist is added to a worksheet, but I can
not cot/paste that to my userform.

Am I doing something wrong, or is there another explanation?

Kind regards,

Ernst