Windows Forms C# - Forms and Dialogs

| | | | | |

Forms and dialogs in Windows Forms are windows that contain controls. They can be different types: to have or to not have a frame, to be modular or not to be, to be stretchable or not to be, to be above all other windows or not to be, and so on. The System.Windows.Forms.Form class The System.Windows.Forms.Form class is a base class for all for

c# passing data between forms

| 2017/10/05 02:07
C# project with two forms
public partial class Form1 : Form // this is the main form

public partial class Form2 : Form // this is the second form
To pass variables (values, data) from Form1 to Form2
Case: public variables in Form2
public string input_variable; // put this in Form2 as global variable

public string output_variable; // put this in Form2 as global variable

in Form1 inside the function that run (call) Form2
TAGS:
1