Tim van Dalen
Tim van Dalen

Reputation: 1471

C# adding usercontrol from different project in solution

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

Solution layout

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

Upvotes: 2

Views: 5147

Answers (1)

Hans Passant
Hans Passant

Reputation: 941357

You forgot to make the class public.

Upvotes: 2

Related Questions