I am currently writing a program for a ame I play, it works out the profit I will make from manufacturing stuff.
The blueprint requires 1 or more components to build and item and my program wrks out the profitability of the item based on the amount produced and sell prices etc.
Each component line has component name, unit/batch, cost/unit, units/30days I then perform some maths which takes the unit/batch * unit/cost = units/30days
I can create 4 new text boxes under the original ones and give then names and perform the maths etc but I am wondering how I manage these once I get up to say 20 rows, I assume a control array which is now and event handler i beleive.
I have read about event handlers which seems fine for one textbox but how do i address many textboxes when i dont know their names to control them?
Thank you in advance for any help.
The blueprint requires 1 or more components to build and item and my program wrks out the profitability of the item based on the amount produced and sell prices etc.
Each component line has component name, unit/batch, cost/unit, units/30days I then perform some maths which takes the unit/batch * unit/cost = units/30days
I can create 4 new text boxes under the original ones and give then names and perform the maths etc but I am wondering how I manage these once I get up to say 20 rows, I assume a control array which is now and event handler i beleive.
I have read about event handlers which seems fine for one textbox but how do i address many textboxes when i dont know their names to control them?
Thank you in advance for any help.