Answer
in form2:
public string custID;
----------
in form1:
button1 click event
{
form2 f=new form2();
f.custID=this.t xtCustID.text;
f.show();
}
------------------
User Profile
Collapse
-
c# getting a value from a databound formX.txtbox into formY.txtbox
Hi,
c# 2008 express edition.
Can anyone please help me figure out why I cannot get any value from one form to another when the controls are databound. (the formY.txtbox lands up empty)
in formY I write in the load event:
Formx frmx = new Formx();
txtCustomer.Tex t = frmx.customerId TextBox.Text;
....(customerId TextBox is public and shows up in intellisense).
...
No activity results to display
Show More
Leave a comment: