Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Advanced ComboBox in WinForms

Advanced ComboBox in WinForms

Scheduled Pinned Locked Moved Windows Forms
csharpwinformsquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nick Alexeev
    wrote on last edited by
    #1

    Colleagues, Is there a standard (and free) control which is like a ComboBox, only better? ;) Some of the potential features could be: * being able to control the font for each of the items individually * icons, checkboxes next to the items If such thing exists, could you post a reference? If not, then I’ll stop the wishful thinking and carry on with the standard ComboBox. Cheers, - Nick

    L L A 3 Replies Last reply
    0
    • N Nick Alexeev

      Colleagues, Is there a standard (and free) control which is like a ComboBox, only better? ;) Some of the potential features could be: * being able to control the font for each of the items individually * icons, checkboxes next to the items If such thing exists, could you post a reference? If not, then I’ll stop the wishful thinking and carry on with the standard ComboBox. Cheers, - Nick

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You may like to investigate WPF where it is relatively easy (after the steep learning curve) to create such controls yourself. Take a look at some of the WPF articles here on CodeProject to see the sort of things that can be done.

      txtspeak is the realm of 9 year old children, not developers. Christian Graus

      1 Reply Last reply
      0
      • N Nick Alexeev

        Colleagues, Is there a standard (and free) control which is like a ComboBox, only better? ;) Some of the potential features could be: * being able to control the font for each of the items individually * icons, checkboxes next to the items If such thing exists, could you post a reference? If not, then I’ll stop the wishful thinking and carry on with the standard ComboBox. Cheers, - Nick

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        Hi, ComboBox (as well as ListBox): 1. holds and shows items of any type you choose, not just strings. 2. supports "user drawing", see DrawMode property and DrawItem event. Hence you could: - define your own little class representing such item, with all the properties you'd like; - paint it yourself in whatever format you like. I often do this with ListBox, and occasionally with ComboBox. And no, I don't have a published example around. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


        I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
        All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.


        1 Reply Last reply
        0
        • N Nick Alexeev

          Colleagues, Is there a standard (and free) control which is like a ComboBox, only better? ;) Some of the potential features could be: * being able to control the font for each of the items individually * icons, checkboxes next to the items If such thing exists, could you post a reference? If not, then I’ll stop the wishful thinking and carry on with the standard ComboBox. Cheers, - Nick

          A Offline
          A Offline
          Abhinav S
          wrote on last edited by
          #4

          You might want to subclass the combobox and add your own functionality as shown here[^].

          Me, I'm dishonest. And a dishonest man you can always trust to be dishonest.
          Honestly. It's the honest ones you want to watch out for...

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups