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. How to change value of "Combobox.MaxDropDownItems"

How to change value of "Combobox.MaxDropDownItems"

Scheduled Pinned Locked Moved C#
csharptutorialquestion
3 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.
  • A Offline
    A Offline
    abhiram_nayan
    wrote on last edited by
    #1

    In my current c# application I need a combobox that can have in it atleast 500 entries. But when I tried to do I, it says it can store at the max! only 100 entries in it. Is there any way I can set the combo's max drop down items?! Regards, na_ab

    M G 2 Replies Last reply
    0
    • A abhiram_nayan

      In my current c# application I need a combobox that can have in it atleast 500 entries. But when I tried to do I, it says it can store at the max! only 100 entries in it. Is there any way I can set the combo's max drop down items?! Regards, na_ab

      M Offline
      M Offline
      musefan
      wrote on last edited by
      #2

      then just put 500 items in, its not a problem. The MaxDropDownItems value is the number of item to be displayed during drop down at any one time. Which is limited to 100 May i also just suggest that a combo box with so many items is not very user friendly IMO

      If only MySelf.Visible was more than just a getter... A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting

      1 Reply Last reply
      0
      • A abhiram_nayan

        In my current c# application I need a combobox that can have in it atleast 500 entries. But when I tried to do I, it says it can store at the max! only 100 entries in it. Is there any way I can set the combo's max drop down items?! Regards, na_ab

        G Offline
        G Offline
        GihanChandima
        wrote on last edited by
        #3

        this is can change simply. first you must change the property DropDownHeight (Default value 106 you can change to 100) and then reset it again(to 106). then you can change the value in maxDropDownItems = 10 or your value. it's work great.......!!!!!!!! thanks gihan gihan_chandima@yahoo.com

        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