listbox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jean et Caro

    listbox

    I am using vb6 for windows application and need help a little think.

    I create a listbox with checkbox on left(style 1), when i try to make
    several selection and click on a command button to export this
    list(selection) to another listbox(for test purpose) anything goes right.

    Any suggestion, or code?
    Thank


  • Rick Rothstein

    #2
    Re: listbox

    > I am using vb6 for windows application and need help a little think.[color=blue]
    >
    > I create a listbox with checkbox on left(style 1), when i try to make
    > several selection and click on a command button to export this
    > list(selection) to another listbox(for test purpose) anything goes right.[/color]

    The code is the same whether the style is CheckBox or not.

    For x = 0 To List1.ListCount - 1
    If List1.Selected( x) Then
    List2.AddItem List1.List(x)
    End If
    Next

    Rick - MVP


    Comment

    • Randy Birch

      #3
      Re: listbox

      define "everything goes right".

      --

      Randy Birch
      MVP Visual Basic

      Please respond only to the newsgroups so all can benefit.


      "Jean et Caro" <nous.autres@sy mpatico.ca> wrote in message
      news:fn0Cb.7038 $aF2.876198@new s20.bellglobal. com...
      : I am using vb6 for windows application and need help a little think.
      :
      : I create a listbox with checkbox on left(style 1), when i try to make
      : several selection and click on a command button to export this
      : list(selection) to another listbox(for test purpose) anything goes right.
      :
      : Any suggestion, or code?
      : Thank
      :
      :


      Comment

      Working...