469,344 Members | 6,177 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,344 developers. It's quick & easy.

CheckList box question....

Hi,
I have a checklist box with a list of machines that the user can select one
or more of.

What I want to be able to do, is when the user selects a machine, and list
of parts (related to the machine) is loaded into a second checklist box.

Each time the user selects a new machine, its parts are loaded into the
second list box. (all existing part are removed from the list box, when the
user selectes a new machine)

What I want to somehow do, is remember the parts there where selected for
the machine, so that should the user return to a machine they have already
selected parts for, then I can show them there current selected parts for
that machine.

Is there an easy way to do this?

Thanks

May 17 '07 #1
1 1616
On 17 mayo, 13:11, "Aussie Rules" <nos...@nospam.comwrote:
Hi,
I have a checklist box with a list of machines that the user can select one
or more of.

What I want to be able to do, is when the user selects a machine, and list
of parts (related to the machine) is loaded into a second checklist box.

Each time the user selects a new machine, its parts are loaded into the
second list box. (all existing part are removed from the list box, when the
user selectes a new machine)

What I want to somehow do, is remember the parts there where selected for
the machine, so that should the user return to a machine they have already
selected parts for, then I can show them there current selected parts for
that machine.

Is there an easy way to do this?

Thanks
Hi there,

Also you can use a TreeView Control with Checkboxes property set to
True. This code could help you: (In this case, clb is a TreeView
Control)

Dim i, j As Integer
Dim noD As TreeNode
For i = 1 To numComputers
noD = clb.Nodes.Add(arrayComputers(i))
For j = 1 To numComputersParts
noD.Nodes.Add(arrayComputersParts(j))
Next
Next

After this you can realize what properties were checked for all the
Computers.

May 17 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by nidhi | last post: by
reply views Thread by Frank | last post: by
1 post views Thread by news.17417 | last post: by
2 posts views Thread by shihabca | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.