Click here to Skip to main content
15,917,645 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
Can anyone tell me how to add user control in .Net 3.5 windows application.

Thanks
Posted

First you have to create your own UserControl obviously and Build it.

Then go to your second project in which you want to include the UserControl.

1. Right Click in the Toolbox and click "Choose Items..." (Can take a while to load)

2. Inside the .NET Framework Components tab click on the Browse button.

3. Locate your DLL file of the UserControl (Inside the Release/Debug folder from your UserControl (bin) folder and click Open.

4. Check your UserControl to be shown in the Toolbox.

5. Drag it on your form!

If you do it this way it will also be automatically referenced in your code so no real manual coding actions needed.

Good luck
 
Share this answer
 
v2
More information needed: Do you want to write a user control, that you can add to other apps, or include one you have written in an app, or include one someone else has written?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900