Results 1 to 8 of 8

Thread: [RESOLVED] [2005] Get SeletedValues from ListBox with Multi-Select

Threaded View

  1. #1

    Thread Starter
    Frenzied Member bmahler's Avatar
    Join Date
    Oct 2005
    Location
    Somewhere just west of the Atlantic
    Posts
    1,568

    Resolved [RESOLVED] [2005] Get SeletedValues from ListBox with Multi-Select

    Ok, so I populate a listbox with a dataset like so

    vb Code:
    1. lbNucs.DataSource = ds.Tables(0)
    2. lbNucs.DisplayMember = "Analyte"
    3. lbnucs.ValueMember = "AnalytePK"

    This works fine, but... I am trying to return the values of multiple selected items. It seems to only return the value of the first selected item in the group. Is it possible to do this by this method?

    I have tried setting the SelectedIndex and it still only returns the value of the first item. any help would be appreciated.
    Last edited by bmahler; Apr 4th, 2007 at 11:37 AM.
    Boooya
    • Visual Studio 2008 Professional
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • Don't forget to rate helpful posts!
    • If you're question was answered please mark your thread [Resolved]


    Code Contributions:
    PHP
    PHP Image Gallery v1.0PHP Image Gallery v2.0
    VB 2005
    Find Computers on a networkSimple License EncryptionSQL Server Database Access dllUse Reflection to Return Crystal ReportDocumentSilently Print PDFGeneric Xml Serailizer


    Useful Links: (more to come)
    MSDN (The first and foremost)MSDN Design Guidelines API Reference • Inno Setup CompilerInno Setup PreprocessorISTool - Fairly easy to use GUI for creating inno setup projects • Connection StringsNAnt -Automated BuildsCruise Control .NET - Frontend for automated builds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width