listbox
Old
  (#1)
Jean et Caro
Guest
 
Posts: n/a
Default listbox - 06-04-2007, 08:56 AM

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


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: listbox
Old
  (#2)
Rick Rothstein
Guest
 
Posts: n/a
Default Re: listbox - 06-04-2007, 08:56 AM

> 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.


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


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: listbox
Old
  (#3)
Randy Birch
Guest
 
Posts: n/a
Default Re: listbox - 06-04-2007, 08:56 AM

define "everything goes right".

--

Randy Birch
MVP Visual Basic
http://www.mvps.org/vbnet/
Please respond only to the newsgroups so all can benefit.


"Jean et Caro" <EMAIL REMOVED> wrote in message
news:fn0Cb.7038$EMAIL REMOVED.. .
: 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
:
:


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top