111,126
社区成员
发帖
与我相关
我的任务
分享using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
namespace WindowsApplication5
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Assembly assembly = Assembly.LoadFrom(Application.ExecutablePath);
Type type = assembly.GetType("WindowsApplication5.Form1");
Form F = (Form)Activator.CreateInstance(type);
F.Show();
}
}
}