Multiple selection in listbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abhijeetroy
    New Member
    • Aug 2007
    • 3

    Multiple selection in listbox

    I am having a controll in my project that is listbox with checkbox style. I like to get all the selected item in a access database or in datagrid. kindly help me to get the vb6 source code.
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by abhijeetroy
    I am having a controll in my project that is listbox with checkbox style. I like to get all the selected item in a access database or in datagrid. kindly help me to get the vb6 source code.
    Sorry, can you try to describe in a bit more detail what part of the process you want help with?

    Comment

    • hariharanmca
      Top Contributor
      • Dec 2006
      • 1977

      #3
      Originally posted by abhijeetroy
      I am having a controll in my project that is listbox with checkbox style. I like to get all the selected item in a access database or in datagrid. kindly help me to get the vb6 source code.
      Make it sure is it list box or list view?

      If it listView, try like this way (this is not a exact code)
      [CODE=vb]
      For i = 1 to lvName.Listitem s.Count
      If lvName.Listitem (i).checked = True Then
      lvName.Listitem (i).Text
      lvName.Listitem (i).Subitem(1)
      lvName.Listitem (i).Subitem(2)
      lvName.Listitem (i).Subitem(3)
      ............... ...........
      ............... ...........
      ............... ...........
      <Place your Insert Query here.>
      End If
      Next i[/CODE]

      Comment

      Working...