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. Center align items in combo box

Center align items in combo box

Scheduled Pinned Locked Moved Windows Forms
tutorialquestion
4 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.
  • B Offline
    B Offline
    Bala Thirumalai
    wrote on last edited by
    #1

    Can any one tell me how to center align the items in the combo box? I've been reading quite a few forums but couldn't figure out any proper method. I want both the list of items in the combo box and the selected item to be center aligned. Thanks in advance. Bala

    L G 2 Replies Last reply
    0
    • B Bala Thirumalai

      Can any one tell me how to center align the items in the combo box? I've been reading quite a few forums but couldn't figure out any proper method. I want both the list of items in the combo box and the selected item to be center aligned. Thanks in advance. Bala

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Bala Thirumalai wrote:

      Can any one tell me how to center align the items in the combo box?

      Using an alignment property if one exists would be the way. If it does not exist the you can do OwnerDraw.

      led mike

      1 Reply Last reply
      0
      • B Bala Thirumalai

        Can any one tell me how to center align the items in the combo box? I've been reading quite a few forums but couldn't figure out any proper method. I want both the list of items in the combo box and the selected item to be center aligned. Thanks in advance. Bala

        G Offline
        G Offline
        Gregory Bryant
        wrote on last edited by
        #3

        they should have a text aling property

        B 1 Reply Last reply
        0
        • G Gregory Bryant

          they should have a text aling property

          B Offline
          B Offline
          Bala Thirumalai
          wrote on last edited by
          #4

          But I couldn't find any such text align property for the combo box. My exact requirement is to use a drop down list type combo box. I'll try Owner draw. Thanks!

          modified on Friday, March 7, 2008 9:57 PM

          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