Hi,
I am currently learning c#.net. the following command to retrieve data from another component on another form:
to change it's value and stuff..
In vb.net I would use
lblMax.Text = frmMain.txtMax. text - to get the value
frmMain.txtMax. text = 1234 - to change it's value.
I am trying to find out how I do this in C#.
when I writing it using C# (with c# syntax) I'm getting the following errors:
"An object reference is required for the non-static field, method, or property"
I have changed to object (textbox) to public and the modifier to public as well.
Thanks....
I am currently learning c#.net. the following command to retrieve data from another component on another form:
to change it's value and stuff..
In vb.net I would use
lblMax.Text = frmMain.txtMax. text - to get the value
frmMain.txtMax. text = 1234 - to change it's value.
I am trying to find out how I do this in C#.
when I writing it using C# (with c# syntax) I'm getting the following errors:
"An object reference is required for the non-static field, method, or property"
I have changed to object (textbox) to public and the modifier to public as well.
Thanks....
Comment