I have a project that contains several forms. I want to send data from my first form to third form. My first form is login screen. Second is menu and third is change user password. When user logs in with his username and password, my second form appears. So, I want to send username from first form to third form as string. I want do this for get user's username and send query to my database to change users password. Please help me.
Asked
Active
Viewed 214 times
1 Answers
0
You can use one of the following ways to pass data between forms:
- Public Property
public GetData{get=>field;set=>field=value;}
- Public method
public void GetData{field=value;}
- Using Constructor
public MyClass(int value) {this.field = value;}

Ahmed Essawy
- 326
- 4
- 13