List of Exercises

Show Another Form and Close Form and Close Application

	
// Codes in Form1
namespace Show_Form
{
  public partial class Form1 : Form
  {
    public Form1()
    {
      InitializeComponent();
    }

private void show_Form_Click(object sender, EventArgs e) { // new Form2().Show(); new Form2().ShowDialog(); }
private void close_Application_Click(object sender, EventArgs e) { this.Close(); } } } // Codes in Form2 namespace Show_Form { public partial class Form2 : Form { public Form2() { InitializeComponent(); }
private void button1_Click(object sender, EventArgs e) { this.Close(); } } }


Download the project of Visual Studio 2013 in DropBox Download


C# Winform Show another Form | Close Form | Close Application


Video Thumbnail