C# adding usercontrol from different project in so

2019-07-17 20:19发布

问题:

I've created a UserControl in a separate project in the same solution I want to use it in. My solution looks like this:

As you can see, I made a reference to the other project in the solution. However, in frmWizard.cs, the user control does not appear in the toolbox. (When I create a form in WizardPages, it does) I tried adding a "using WizardPages.WizardPages.cs" to frmWizard.cs, but Visual Studio reported that that did not exist.

Any suggestions would be appreciated.

Tim

回答1:

You forgot to make the class public.