CheckList box question....

  • Thread starter Thread starter Aussie Rules
  • Start date Start date
A

Aussie Rules

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,
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.
 
Back
Top