F
Franck
I know in vb6 it was super easy to pass parameter or either read
example the textbox1.text on the already open form form2
like all object were as public. but is there a way to do something
that easy in c# because i wonder is there is a faster way than the
following example i use right now
to assign a control in another form a value at opening (ex:
textbox1.text)
frmForm2 frm = new frmForm2();
frm.textbox1.text = "bla bla bla";
frm.show();
and here the way i use for example if i would like from frmForm1 read
what's inside the currently opened frmForm2
first in frmForm2 i create a get class like
public string FormTexbox1TextValue
{
get{return this.textbox1.text};
}
and now in form1 i can call it by frmForm2.FormTextbox1TextValue() and
it'll return me the value of his textbox.
so is there any faster way
example the textbox1.text on the already open form form2
like all object were as public. but is there a way to do something
that easy in c# because i wonder is there is a faster way than the
following example i use right now
to assign a control in another form a value at opening (ex:
textbox1.text)
frmForm2 frm = new frmForm2();
frm.textbox1.text = "bla bla bla";
frm.show();
and here the way i use for example if i would like from frmForm1 read
what's inside the currently opened frmForm2
first in frmForm2 i create a get class like
public string FormTexbox1TextValue
{
get{return this.textbox1.text};
}
and now in form1 i can call it by frmForm2.FormTextbox1TextValue() and
it'll return me the value of his textbox.
so is there any faster way