CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2000
    Location
    Canada
    Posts
    59

    Picutures in a Combo box??

    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



  2. #2
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: Picutures in a Combo box??

    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
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

  3. #3
    Join Date
    Dec 2000
    Location
    Canada
    Posts
    59

    Re: Picutures in a Combo box??

    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


  4. #4
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: Picutures in a Combo box??

    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
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured