how to do mulitline selection in ListBox control in C#.Net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manivelk
    New Member
    • Jan 2008
    • 21

    how to do mulitline selection in ListBox control in C#.Net

    hi everyone,

    I have a query. I want to know how to select multiple values from a list box control in C#.Net.. Please help me out..

    Thanks in advance..

    With regrads,
    Manivel. K
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Set ListBox1.Select ionMode = ListSelectionMo de.Multiple and ListBox1.Items[i].Selected = true. The rest you should be able to do yourself. HTH.

    Comment

    • manivelk
      New Member
      • Jan 2008
      • 21

      #3
      Hi,

      Thanks for your reply.. i checked out that property.. But it selects the whole list elements. I want to select the required items only.. Please help me out..

      Thank in advance..

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        Some people say that its 'x' who is important, but miss that 'i' can have more utility than 'u'...

        Comment

        Working...