frmSearch fsearch = new frmSearch("formName", this); fsearch.Show(); public frmSearch(string formName, Form _form) { switch (formName) { case "client": _form.txtBoxclient.Text = value; //Error can not find control break; case "provider": _form.txtBoxprovidet.Text = value; //Error can not find control }
frmSearch(string formName, Form _for)
(frmManagementFile, frmClient,....)
public frmSearch(string formName, Form _form)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)