User control without being in the GAC
-
Is there a way I can place a user control onto a form in designer mode without having to have it go into the GAC? The tutorials out there seem to indicate this is the only way to get it into your toolbox. Regards, James
Did I post well? Rate it! Did I post badly? Rate that too!
-
Is there a way I can place a user control onto a form in designer mode without having to have it go into the GAC? The tutorials out there seem to indicate this is the only way to get it into your toolbox. Regards, James
Did I post well? Rate it! Did I post badly? Rate that too!
If I understand you correctly, this may solve your problem. This is how I did it on a project I'm currently working on. Show your toolbox in VS. Right click on the toolbox, and select the Choose Items... menu option. A dialog now shows that is titled "Choose Toolbox Items". Click browse, find the DLL or EXE your user control is in, and click OK. The list that is under the .NET Framework Components tab should now list all User Controls that DLL or EXE contained. Make sure that the checkbox next to the user control you want to put on your form is checked, then click OK. The "Choose Toolbox Items" dialog goes away, and your User Control is added to the currently selected tab in your toolbox (doesn't look like a tab, but that is what the context menu calls them) You should now be able to drop that user control on your form. BTW, I use VS2005, so I'm not sure if its the same for VS2003. HTH.