how to add fields when click add field?
if i have 3 textbox and 2 combobox in horizontly
i need one more row of same textbox and combobox
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manish Kumar ChoudharyPosted Mar 24, 2015, 2:31 AM
Go through following links it will help you
http://visualcsharptutorials.com/windows-forms/dynamically-adding-controls
http://www.codeproject.com/Articles/16682/Dynamically-Adding-Button-to-a-Form
Joginder BangerPosted Mar 24, 2015, 2:40 AM
txt.Text = "ABC"; this.Controls.Add(txt);
private void btnOk_Click(object sender, EventArgs e)
{ foreach (Control ctl in this.Controls) {
if (ctl.GetType() == typeof(TextBox))
}
}
try this code...