471,887 Members | 1,458 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 software developers and data experts.

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 1675
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 YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

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.