C#中怎样实现多个窗体中的程序同时运行

2025-05-05 22:54:19
推荐回答(1个)
回答1:

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