PDA

View Full Version : User define the number of boxes in a form



fadib
11-09-2007, 11:45 AM
Hi guys,
what I want to accomplish is to add certain number of component together.
The user will be asked to input the number of component to sum.
Based on the value entered by the user, the form will initiate the number of textbox and a checkbox=false in which the user will have to enter the values.
Once the values are entered, they are summed, and the result is displayed.
Of course the window has to change its dimension accordingly.

I am not sure if I am giving a good description.
can you guys please help me out.
:)

xld
11-09-2007, 12:37 PM
Help you out where?

Have you got any of that written, or do you want it all? If the latter, do it another way, design you form with everything on, then just hide those not wanted.

fadib
11-09-2007, 01:52 PM
No I don't have anything written.
but i think you answered my question.
so what I have to do , is to design to the maximum number, and hide everything.
and based on the user input unhide things and modify the width and the length of the window.

xld
11-09-2007, 03:52 PM
Yes, that is what I am suggesting.

That is relatively simple, whereas adding controls on the fly is fraught with problems - it is doable, but not a good idea IMO.

fadib
11-10-2007, 10:02 AM
Cool, Thanks
:thumb