hi,
I want to pass textbox text from one form to another using Property get and set.
I have done it successfully on click event and then when popup window opens (or form2 opens) i get the value after initialization...
But i want to learn how to do it with property i already have my property in form1 where the textbox is:
public string PropNearest
{
get
{
return Nearest.Text;
}
set
{
Nearest.Text = value;
}
}
and in 2nd form i have
private Form1 frm= new Form1();
string sd = frm.PropNearest;
but the above returns always empty string...