I am trying to get data from form 1 and use it in form 3. I've done some googling and some have said to use class constructors, ive tried a few things and this is the closest thing i have so far but it still wont work. is anybody able to advise please?
Form1:
string userNameText = userName.Text;
userNameText = Form3.user;
Form2:
public partial class Form3 : Form
{
public string user
{
get { return userName.Text; }
set { userName.Text = value; }
}
}
Can anybody see what i am doing wrong here?