how to retrieve object data from a container that has more the one type of object in it

  • Thread starter Thread starter LavaCreeperKing
  • Start date Start date
L

LavaCreeperKing

Guest
Hi I am working on a tool that can help keep track of an inventory of items. I am using a panel control to display checkBoxes and numericUpDown controls. Now the problem is I need to get the names of all the chechBoxes and the values of all the numericUpDown controls so I can save the data, but I don't know how to do that. A foreach loop wont work because you can only give it one type. How do I get the info from the controls? I do not have a preset amount of items you can add and remove as many items as you want. I need to be able to get the needed info from all the checkBoxes and numericUpDows so I can save the data.

Continue reading...
 
Back
Top