How to duplicate a line of control on the form...

atilak

Member
Joined
Jul 23, 2006
Messages
8
Location
india
Programming Experience
3-5
Hello All!!
Nice work here and thnx everyone for everything u do here.

Now here is my question:

I m designing a form as follows:

Name Basic HRA PT PF Loan Advances Others Net Continue?



here, i'v placed textboxes under each heading and yes/no buttons under continue. now if user press yes then a blank row of textboxes should appear under the same heading, the previous one should remain where it is. how can i do this?

Plz provide guidance as quickly as possible.

Thanking everyone again..

Ashish
 
Using a DataGridView control would be appropriate.
 
Also, you can add the textbox's at design time, make them invisible, and if they click yes make them visible. or you can add them programmatically when the user clicks yes by declaring it, positioning it, sizing it, ect.... the DataGrid Control is very flexible and suite most situations of the type but if you just want to keep to simple textboxs that should help.
 
Back
Top