Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Windows 应用程序。我将另一个应用程序的 dll 添加到它的引用中。第二个应用程序有一个名为 MainForm 的表单。我想从该 dll 创建一个新实例并从中运行 MainForm?可能吗?如果是,我该怎么做?
你的意思是这样的:
using Project2; // Or whatever. ... Application.Run(new MainForm());
? 如果这没有帮助,您需要提供更多信息。