ImageList...quick question

ImageList...quick question

Anonymous
Not applicable
117 Views
1 Reply
Message 1 of 2

ImageList...quick question

Anonymous
Not applicable
I'm planning to use an ImageList control (not a standard control) to store
the icons for a ListBox. Why do I get an error saying the "ImageList must be
initialized"? I've never seen this in standard VB. Thanks

-phix
0 Likes
118 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Hi, Phix,

I am a newcomer, I just want to offer what I know as a quick reference to
you, and hope other friend can provide a better picture.

The initialize can be treated similar to the "form load" in VB.

When you go to the index of source code of in the vba editor, you will see
from first one to last one look like this:
__________________________
(General)
....
.....
cmdbutton1.....

frame1

........
.......
Userform
____________________

The last one "Userform" is a sub similar to the form load, eg

Public Sub UserForm_Initialize()
Call Modcolor ' or sub you want to initialize
Me.Top = 0
Me.Left = 0
Me.width = 800
Me.height = 650
End sub

Find more from the online help, hope this help
Regards,
Kin

Phix wrote in message <7sefv9$j823@adesknews2.autodesk.com>...
>I'm planning to use an ImageList control (not a standard control) to store
>the icons for a ListBox. Why do I get an error saying the "ImageList must
be
>initialized"? I've never seen this in standard VB. Thanks
>
>-phix
>
>
0 Likes