Click to See Complete Forum and Search --> : Picutures in a Combo box??


Raistlin
May 10th, 2001, 11:17 AM
I need to create a combo box or list box, grid to display a bunch of symbols. I have no idea how to start. My lead developer said "don't create an .ocx make it a ActiveX dll". From my experience I used ActiveX dll in ASP pages not creating a VB Control. Does he mean populate a control through my dll code.

Please help

Thank You
Raistlin

Johnny101
May 10th, 2001, 01:29 PM
VB6 has something called an ImageCombo, in which you can place icons and such. I dont have a clue where the activex concerns come into play. before drudging through all that code, take a look at the image combo. it might do exactly what you need.

good luck,

john

John Pirkey
MCSD
http://www.ShallowWaterSystems.com
http://www.stlvbug.org

Raistlin
May 10th, 2001, 03:32 PM
Thank you. That works but I am trying to put all the font types in a combo box. Now when I put them in the combo they are the same. It changes all the fonts on all the items.
Here is the code:


Dim I as Integer ' Declare variable.
for I = 0 to Printer.FontCount - 1 ' Determine number of fonts.
List1.Font.Name = Printer.Fonts(I)
List1.AddItem Printer.Fonts(I) ' Put each font into list box.
next I




Thank you

Johnny101
May 10th, 2001, 04:38 PM
You need to setup an ImageList control with bitmaps that represent a sample of the font. for each font, you'll add the corresponding bitmap sample.

unfortunately, i dont have much more to offer with that stuff. if you get the images created, i can help you with getting them into the imagelist and then into the combo box.

good luck,

john

John Pirkey
MCSD
http://www.ShallowWaterSystems.com
http://www.stlvbug.org