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. C#
  4. Combox Bold certain items

Combox Bold certain items

Scheduled Pinned Locked Moved C#
com
5 Posts 3 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.
  • V Offline
    V Offline
    Vadim Tabakman
    wrote on last edited by
    #1

    Hi all, Can someone please point me in the direction of how I would go about being able to set certain items in a ComboBox to Bold. Basically I want my Combo to look like this when i drop it down Group1 A B C Group 2 D E F Cheers Jubjub "If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders

    D 1 Reply Last reply
    0
    • V Vadim Tabakman

      Hi all, Can someone please point me in the direction of how I would go about being able to set certain items in a ComboBox to Bold. Basically I want my Combo to look like this when i drop it down Group1 A B C Group 2 D E F Cheers Jubjub "If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      The only way you're going to be able to do that is if you ownerdraw the item list. The ComboBox doesn't support doing this on its own. You can find an example of ownerdrawing a ComboBox here[^]. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      V D 2 Replies Last reply
      0
      • D Dave Kreskowiak

        The only way you're going to be able to do that is if you ownerdraw the item list. The ComboBox doesn't support doing this on its own. You can find an example of ownerdrawing a ComboBox here[^]. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        V Offline
        V Offline
        Vadim Tabakman
        wrote on last edited by
        #3

        Hi Dave, Thank you for that link. It was perfect. I am now trying to figure out how to get the default font a Combobox would use, so I can reuse that, and just change the setting to Bold for certain items. Cheers Jubjub "If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders)

        1 Reply Last reply
        0
        • D Dave Kreskowiak

          The only way you're going to be able to do that is if you ownerdraw the item list. The ComboBox doesn't support doing this on its own. You can find an example of ownerdrawing a ComboBox here[^]. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          D Offline
          D Offline
          Dan Neely
          wrote on last edited by
          #4

          you might also want to look at this control. http://www.codeproject.com/cs/miscctrl/ImageComboBoxControl.asp

          D 1 Reply Last reply
          0
          • D Dan Neely

            you might also want to look at this control. http://www.codeproject.com/cs/miscctrl/ImageComboBoxControl.asp

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            That's a pretty good one too. How did I miss that? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            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