I have just created "WindowsFormsApplication1".
To this I have "Form1".
I have Added a New Item to this project: "Form2"
So I have 2 Forms.
Now I have created a button on "Form1". With this button I want to open
"Form2".
I have never done this before so I have no idéa where to start.
Code for "Form1"
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
}
}
}
"Form2"
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void Form2_Load(object sender, EventArgs e)
{
}
}
}
What will I do with this code now, the only thing I know is that this possible have something to do in order to open "Form2" ?.