OK, so a complete (ish) newbie to c# here.
I have a form, MainForm. On this I have a text box, txtTable that is declared as
When I go into another form (that is called from this one) I want to be able to refer to MainForm.txtTable.text to get the value - but of course I can't.
I have read something about having to put a get and return statement somewhere in the code, but I don't know where, and I have tried quite a few places
Any - and the more verbose the better - as I said, complete newbie here - help greatly appreciated as there are 3 txt boxes I want to be able to refer to from the main form.
thanks
I have a form, MainForm. On this I have a text box, txtTable that is declared as
Code:
public TextBox txtTable
When I go into another form (that is called from this one) I want to be able to refer to MainForm.txtTable.text to get the value - but of course I can't.
I have read something about having to put a get and return statement somewhere in the code, but I don't know where, and I have tried quite a few places
Any - and the more verbose the better - as I said, complete newbie here - help greatly appreciated as there are 3 txt boxes I want to be able to refer to from the main form.
thanks