Results 1 to 11 of 11

Thread: VB6 ImageCombo equivalent

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Posts
    384

    VB6 ImageCombo equivalent

    Hello again!
    I've noticed that there is no ImageCombo in VB.NET, is there an equivalent out there, or maybe something else I could use?

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

    Re: VB6 ImageCombo equivalent

    Do you mean a ComboBox that supports images? If so then the standard ComboBox doesn't but there are numerous inherited ComboBoxes around that do. The ExtendedComboBox in the WFC library in my signature is just one. It was compiled for .NET 1.1 but seems to work OK in 2.0 as well. I'm sure there are several examples at The Code Project and others elsewhere too.
    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
    Hyperactive Member
    Join Date
    Sep 2005
    Posts
    384

    Re: VB6 ImageCombo equivalent

    Thank you so much my friend, I'll test it out tonight!

  4. #4
    Hyperactive Member sheikh78's Avatar
    Join Date
    Apr 2006
    Location
    C:/
    Posts
    423

    Re: VB6 ImageCombo equivalent

    That combobox is in a .csproj format. Any other extended comboboxes?
    "Imagination is more important than knowledge" - Albert Einstein, born on March 14th 1879.
    Can't find it here on VBForums? Go to the CodeProject. MSDN is your friend . I have such a bad website, my friend decided it would be funny to change the template and he moderates the site for me: visit my site!

    "Thinking of you, wherever you are
    We pray for our sorrows to end, and hope that our hearts will blend.
    Now I will step forward to realize this wish.
    And who knows, starting a new journey may not be so hard…
    Or maybe it has already begun.
    There are many worlds, but they share the same sky
    one sky, one destiny..."

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

    Re: VB6 ImageCombo equivalent

    Quote Originally Posted by sheikh78
    That combobox is in a .csproj format. Any other extended comboboxes?
    You aren't supposed to use the code. The whole .NET Framework was written in C# but that doesn't stop you using it does it? You are supposed to add a reference to the WFC library to your project, just as you do with assemblies from the Framework. Then it doesn't matter what language was used to create them in the first place because a .NET assembly is a .NET assembly. They all contain MSIL regardless of the original development language.

    If you mean the sample project they provide is in C# then you either don't use the sample project or you convert the C# code to VB using one of the code converters in my signature or some other converter. There's no guarantee it will be 100% perfect but you can fix the issues yourself using your own VB.NET knowledge.
    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

  6. #6
    Hyperactive Member sheikh78's Avatar
    Join Date
    Apr 2006
    Location
    C:/
    Posts
    423

    Re: VB6 ImageCombo equivalent

    How would you add images to this combobox through vb.net code? I don't understand.
    "Imagination is more important than knowledge" - Albert Einstein, born on March 14th 1879.
    Can't find it here on VBForums? Go to the CodeProject. MSDN is your friend . I have such a bad website, my friend decided it would be funny to change the template and he moderates the site for me: visit my site!

    "Thinking of you, wherever you are
    We pray for our sorrows to end, and hope that our hearts will blend.
    Now I will step forward to realize this wish.
    And who knows, starting a new journey may not be so hard…
    Or maybe it has already begun.
    There are many worlds, but they share the same sky
    one sky, one destiny..."

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

    Re: VB6 ImageCombo equivalent

    Have you added an ExtendedComboBox to a form and checked out what members it has? If not then that's the first thing you should do. Put on your detective's hat and investigate.
    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

  8. #8
    New Member
    Join Date
    May 2006
    Posts
    14

    Re: VB6 ImageCombo equivalent

    I'm so glad I found this thread. I just tried out the extended combobox from your WFC library and it is exactly what I was looking for. Some of the other controls look pretty cool as well, I'll check them out later. THANKS

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

    Re: VB6 ImageCombo equivalent

    Quote Originally Posted by prankster624
    I'm so glad I found this thread. I just tried out the extended combobox from your WFC library and it is exactly what I was looking for. Some of the other controls look pretty cool as well, I'll check them out later. THANKS
    Just to stipulate, it's not "my" library. My great skill in life is compiling lists of links to useful resources provided by others.
    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

  10. #10
    Hyperactive Member ZaNi's Avatar
    Join Date
    Jun 2006
    Location
    Australia
    Posts
    360

    Re: VB6 ImageCombo equivalent

    Quote Originally Posted by jmcilhinney
    Just to stipulate, it's not "my" library. My great skill in life is compiling lists of links to useful resources provided by others.
    And I should add that my great skill in life is recognising this and thusly referencing jmcilhinney's signature whenever possible
    * Don't limit yourself to sanity
    * I'd rather be optimistic and naive than pessimistic and right
    * Ask good questions, get good answers.

    My Codebank submissions:
    How to write one rountine to handle many events
    Accessing and Using variables across multiple forms
    Printing/Previewing a form or control

    Links I've "borrowed" from other people:
    vbdotnetboy - Awesome site for tips

  11. #11
    Hyperactive Member sheikh78's Avatar
    Join Date
    Apr 2006
    Location
    C:/
    Posts
    423

    Re: VB6 ImageCombo equivalent

    Quote Originally Posted by ZaNi
    And I should add that my great skill in life is recognising this and thusly referencing jmcilhinney's signature whenever possible
    Can't forget, it's my job to pass on jmcilhinney's advice and threads he answered to others and it's also my job to refer people to Zani .
    "Imagination is more important than knowledge" - Albert Einstein, born on March 14th 1879.
    Can't find it here on VBForums? Go to the CodeProject. MSDN is your friend . I have such a bad website, my friend decided it would be funny to change the template and he moderates the site for me: visit my site!

    "Thinking of you, wherever you are
    We pray for our sorrows to end, and hope that our hearts will blend.
    Now I will step forward to realize this wish.
    And who knows, starting a new journey may not be so hard…
    Or maybe it has already begun.
    There are many worlds, but they share the same sky
    one sky, one destiny..."

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