user defined indexes in a comboBox?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ORC

    user defined indexes in a comboBox?

    Is it possible to set the index value in a comboBox to a user defined value
    like e.g having a combobox with indexes 1, 12, and 20 and nothing else?

    Thanks
    Ole


  • Stoitcho Goutsev \(100\) [C# MVP]

    #2
    Re: user defined indexes in a comboBox?

    Hi ORC,

    I don't think so. Index is not property of the item it is not preserved
    anywhere it is just the number of the position the element appears in the
    combobox's list. Unless you don't have empty items there is no way you can
    use indices greater than the number of items.

    --

    Stoitcho Goutsev (100) [C# MVP]


    "ORC" <orc@sol.dk> wrote in message
    news:%23qMrPO%2 3yEHA.3416@TK2M SFTNGP09.phx.gb l...[color=blue]
    > Is it possible to set the index value in a comboBox to a user defined
    > value
    > like e.g having a combobox with indexes 1, 12, and 20 and nothing else?
    >
    > Thanks
    > Ole
    >
    >[/color]


    Comment

    Working...