Listbox selection problem in VB.NET

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

    #1

    Listbox selection problem in VB.NET

    Hello all:

    In a VB.NET application, I have a listbox with SelectionMode property
    set to MultiExtended. When I select multiple items using the CTRL key,
    all is well; however, when I select a range using the Shift key, the
    SelectedItems array only holds the first index in the range, and I
    cannot determine (programmatical ly) where the range ends, and thus
    which indices (aside from the first) are selected.

    Can anyone explicate this behaviour for me?

    Cheers,
    zdrakec
  • Visual Boodu .NET

    #2
    Re: Listbox selection problem in VB.NET

    This newsgroup is for Visual Basic versions 6 and under. I believe the
    microsoft.publi c.dotnet.langua ges.vb newsgroup will be of some benefit to
    you.

    zdrakec wrote:[color=blue]
    > Hello all:
    >
    > In a VB.NET application, I have a listbox with SelectionMode property
    > set to MultiExtended. When I select multiple items using the CTRL key,
    > all is well; however, when I select a range using the Shift key, the
    > SelectedItems array only holds the first index in the range, and I
    > cannot determine (programmatical ly) where the range ends, and thus
    > which indices (aside from the first) are selected.
    >
    > Can anyone explicate this behaviour for me?
    >
    > Cheers,
    > zdrakec[/color]


    Comment

    Working...