Is it possible to create a Windows Form in a C# Class Library?

前端 未结 4 1728
栀梦
栀梦 2021-02-05 19:19

I\'ve been building DLL class libraries in C#, used as add-ons to an application which provides a Custom API. Up until now they\'ve included mostly interfacing with databases,

4条回答
  •  离开以前
    2021-02-05 19:50

    Yes, you can. You need to add a reference to System.Windows.Forms in the class library project (right-click on project -> Add -> Reference)

提交回复
热议问题