Results 1 to 3 of 3

Thread: [2005] Simple combobox question (i hope)

  1. #1

    Thread Starter
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Exclamation [2005] Simple combobox question (i hope)

    I have a program i wrote in vb6, and i am rewriting it in 2005. Well on this program i have a imagecombo that shows all the available drive letters and an icon that shows what kind of drive it is.
    I already have gotten a list of drives working. My question is this:

    How do i assign an icon to a combobox entry in 2005?
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Simple combobox question (i hope)

    The ComboBox class doesn't support this by default. You would have to inherit the class and modify its behaviour. Alternatively you could use a third-party control that has already done the work for you. The free library in my signature includes such a control.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: [2005] Simple combobox question (i hope)

    i would like to be able to do it myself. But i am a relatively recent convert to .net and i don't even know what you mean by "inherit the class"
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

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