Hi,
I'm haven some problems moving value from winForms.
I have Textbox with hold propertyID and I need to move this value to form2 to finish running my query. Only problem is value comes over as NULL. Not sure what I'm doing wrong I have use GET / SET property few other times but not with winForms. When I debug I get "" for value from PropertyID.
CODE:
form1:
public string PropertyID
{
get { return propertyID.Text; }
}
form2:
form1 form1 = new form1();
string PropertyID = form1.PropertyID;
Thanks CLA
I'm haven some problems moving value from winForms.
I have Textbox with hold propertyID and I need to move this value to form2 to finish running my query. Only problem is value comes over as NULL. Not sure what I'm doing wrong I have use GET / SET property few other times but not with winForms. When I debug I get "" for value from PropertyID.
CODE:
form1:
public string PropertyID
{
get { return propertyID.Text; }
}
form2:
form1 form1 = new form1();
string PropertyID = form1.PropertyID;
Thanks CLA