VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

image in combo box

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
232 Views, 5 Replies

image in combo box

I have finally got an image to show in a Listview and populate it but is
there a way to have the Listview act like a combobox so I can drop down the
list instead of scrolling it. I have tried several different settings and i
can't seem to get it to work. if this won't work is there a way to create
something like a combobox that will allow images?

please say yes.....


--
Rob Starz
Plogv 3.0 & 2000 (plot logging) for r14 & 2000
***Enhancement Tools for Arch. Desktop *****
*** ADTcadPacX³ coming soon ****
http://www.stardsign.com/main.htm
StarDsign cad solution
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

MSCOMCTL.ocx has an ImageCombo control. Have you tried it?

--
Mark Holder
Applied Technology Solutions, Inc.

Rob Starz wrote in message
news:298E0E7DA3D0367053968EB1C7C2B344@in.WebX.maYIadrTaRb...
> I have finally got an image to show in a Listview and populate it but is
> there a way to have the Listview act like a combobox so I can drop down
the
> list instead of scrolling it. I have tried several different settings and
i
> can't seem to get it to work. if this won't work is there a way to create
> something like a combobox that will allow images?
>
> please say yes.....
>
>
> --
> Rob Starz
> Plogv 3.0 & 2000 (plot logging) for r14 & 2000
> ***Enhancement Tools for Arch. Desktop *****
> *** ADTcadPacX³ coming soon ****
> http://www.stardsign.com/main.htm
> StarDsign cad solution
>
>
>
>
Message 3 of 6
Anonymous
in reply to: Anonymous

imagecombo looks like it will work. I added the control and now I am trying
to initialize the Imagelist to the imagecombo and I am getting an INVALID
OBJECT message with the following code.

ImageCombo1.ImageList = ImageList1

Imagelist1 is a control already populated with images and this code
worked(when the correct name was typed) for ListView control. Am I missing
something. i have searched MSN and the above code is what they show.

????

--
Rob Starz
Plogv 3.0 & 2000 (plot logging) for r14 & 2000
***Enhancement Tools for Arch. Desktop *****
*** ADTcadPacX³ coming soon ****
http://www.stardsign.com/main.htm
StarDsign cad solution
Message 4 of 6
Anonymous
in reply to: Anonymous

SET ImageCombo1.ImageList = ImageList1

--
Mark Holder
Applied Technology Solutions, Inc.

Rob Starz wrote in message
news:C6F19FFE9795E8C3BFB5119B25BDFF97@in.WebX.maYIadrTaRb...
> imagecombo looks like it will work. I added the control and now I am
trying
> to initialize the Imagelist to the imagecombo and I am getting an INVALID
> OBJECT message with the following code.
>
> ImageCombo1.ImageList = ImageList1
>
> Imagelist1 is a control already populated with images and this code
> worked(when the correct name was typed) for ListView control. Am I missing
> something. i have searched MSN and the above code is what they show.
>
> ????
>
> --
> Rob Starz
> Plogv 3.0 & 2000 (plot logging) for r14 & 2000
> ***Enhancement Tools for Arch. Desktop *****
> *** ADTcadPacX³ coming soon ****
> http://www.stardsign.com/main.htm
> StarDsign cad solution
>
>
>
>
Message 5 of 6
Anonymous
in reply to: Anonymous

did that and still get Invalid Object

Set ImageCombo1.ImageList = ImageList1

I checked and the ImageCombo1 and ImageList exist in the form.

This is baffling me.

--
Rob Starz
Plogv 3.0 & 2000 (plot logging) for r14 & 2000
***Enhancement Tools for Arch. Desktop *****
*** ADTcadPacX³ coming soon ****
http://www.stardsign.com/main.htm
StarDsign cad solution
Message 6 of 6
Anonymous
in reply to: Anonymous

It works for me:

1) VB6, not VBA. I have not tried in VBA, should work there too.

2) The ImageList has to have images BEFORE setting the ImageList property
of the ImageCombo.

--
Mark Holder
Applied Technology Solutions, Inc.
Rob Starz wrote in message
news:F6F56D67532754C6B34BF178040609A3@in.WebX.maYIadrTaRb...
> did that and still get Invalid Object
>
> Set ImageCombo1.ImageList = ImageList1
>
> I checked and the ImageCombo1 and ImageList exist in the form.
>
> This is baffling me.
>
> --
> Rob Starz
> Plogv 3.0 & 2000 (plot logging) for r14 & 2000
> ***Enhancement Tools for Arch. Desktop *****
> *** ADTcadPacX³ coming soon ****
> http://www.stardsign.com/main.htm
> StarDsign cad solution
>
>
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


AutoCAD Beta