List of Exercises

How to use Multiple Form in C# WinForms Project

	
  public partial class Form1 : Form
  {
    public static string txt1 = "";
    public Form1()
    {
      InitializeComponent();
    }
    private void button1_Click(object sender, EventArgs e)
    {
      txt1 = textBox1.Text;
      new Form2().ShowDialog();
    }
  }
 public partial class Form2 : Form
  {
    public Form2()
    {
      InitializeComponent();
      label1.Text = Form1.txt1;
    }
  }
	


Download the project of Visual Studio 2013 in DropBox Download


How to use Multiple Form in C# WinForms Project


Video Thumbnail