473,467 Members | 1,487 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

LsitBox Problem in VB6(PLZ help)

17 New Member
Hi

If I have a list box with some date in list, and this list box show in CheckBox Style,and second listbox empty . I want to transfer some of them with one CLICK to second list.

How can I do?

Thank you
Oct 13 '06 #1
1 968
Killer42
8,435 Recognized Expert Expert
Hi
If I have a list box with some date in list, and this list box show in CheckBox Style,and second listbox empty . I want to transfer some of them with one CLICK to second list.
How can I do?
Thank you
Is this any help? I just tried it out and it works...
Expand|Select|Wrap|Line Numbers
  1. Private Sub Command1_Click()
  2.   For I = 0 To List1.ListCount - 1
  3.     If List1.Selected(I) Then
  4.       List2.AddItem List1.List(I)
  5.     End If
  6.   Next
  7. End Sub
Oct 20 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: E | last post by:
As I am just beginning VB6 and have had much help from those of you here in the news groups (and I do appreciate it greatly) I would prefer to do a little more research on my own before asking. ...
4
by: mattigiat | last post by:
Sorry for being such a newbie in this respect, but here's my question: I have Visual Studio, with VB6 ent., with msdn help installed. Is there any way to downgrade to just using the VB5 help, on...
13
by: Joner | last post by:
Hello, I'm having trouble with a little programme of mine where I connect to an access database. It seems to connect fine, and disconnect fine, but then after it won't reconnect, I get the error...
2
by: Islamegy® | last post by:
Hi, I'm C# Developer re-write VB6 Application to C#.Net, also support the old VB6 till i finish the project.. I Try to use VB6 Visual data manager to create a DataEnviroment connection and 3...
0
by: sawah | last post by:
how do i create a bulleted list in a scroll bar to become part of powerpoint presentation? it opens up a window in VB6 and gives me Private Sub ScrollBar1_Change() End Sub i have 12...
5
jeffbroodwar
by: jeffbroodwar | last post by:
hi, i need help about consuming webservice created in java with vb6. i've created the webservice in netbeans with sun java server bundle and used MS Soap toolkit 3.0 on the client side. i've...
5
by: Chris Joyce | last post by:
I have VB6 it came with MSDN Library April 2003 (3CD set). All installed ok but VB6 help does not work. Checked on MS website and it seems that MSDN libraries after 2001 only directley interface...
1
by: Hugh Haggerty | last post by:
Does anyone have the Code and Declarations necessary to play WAV Files in VB6? This must be done without the Windows Media Player Console becoming visible. A shell function used to work, but it...
1
by: sanju4kk | last post by:
VB6..just reinstalled my os..this error occurs while am loging error: -2147217407 (80041001)
1
Frinavale
by: Frinavale | last post by:
Hi! I hope that someone here has developed a help file for a VB6 control before. I have created a help file (.chm) and have been trying (for some time now) to add Context IDs to my help. ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.