I want to pass texbox username
value to another form name FormPassword
. I try this code in FormPassword.cs
:
string strUserName;
public string passvalue
{
get { return strUserName; }
set { strUserName = value; }
}
in first form from which I want to get value of username.text
FormPassword frm = new FormPassword();
frm.passvalue = username.Text;
but it give Nothing.