|
There are multiple methods for assigning controls between forms:
1. Use event delegation
2. Change the private declaration of the form control to public,
Take one form as the parent form and the other as the child form, you can set the control value of the child form in the parent form
3. If it is accessed when it is loaded, it is directly passed as a parameter in the form constructor.
4. Write a class, define static properties or methods (set and get),
Can assign values in one form, get values in another form
... |
|