1)新建建一個“Windows 窗體應用程式”專案。專案中帶一個窗體Form1
2)再向專案中新增一個窗體Form2
3)在Form1的後臺程式碼
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
1)新建建一個“Windows 窗體應用程式”專案。專案中帶一個窗體Form1
2)再向專案中新增一個窗體Form2
3)在Form1的後臺程式碼
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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