Windows Develop Bookmark and Share   
 index > Windows Forms General > Control in Toolbox - Debug or Release?
 

Control in Toolbox - Debug or Release?

I am making some control in my application. I want to add it to toolbox and use it in my application's form. As I am developing an application, I am compiling it as "Debug". Now when I want to add a control from toolbox, I r-click on toolbox, select Choose Items and browse for an executable for my application. I find it in Debug folder, add it and I have my Control that I can drag, drop and use.

And now the question: When I change to Release, should I add it again from Release folder and change all my controls in my form from Debug into Release ones? Or will it be done automaticly?
bucz  Monday, September 03, 2007 8:26 AM
Controls you put in the toolbox should always be the Release mode version. You'll also have to worry about deploying the assembly that contains the control to the client's machine. That typically forces you to put the assembly in the GAC. If you only use the control in one project or want to avoid deployment issues, just put the control class in your project and build. The control will appear on the top of the toolbox and its code will be incorporated in your .exe assembly. Debug vs release won't be an issue either.
nobugz  Monday, September 03, 2007 12:38 PM
Controls you put in the toolbox should always be the Release mode version. You'll also have to worry about deploying the assembly that contains the control to the client's machine. That typically forces you to put the assembly in the GAC. If you only use the control in one project or want to avoid deployment issues, just put the control class in your project and build. The control will appear on the top of the toolbox and its code will be incorporated in your .exe assembly. Debug vs release won't be an issue either.
nobugz  Monday, September 03, 2007 12:38 PM
" just put the control class in your project and build. The control will appear on the top of the toolbox"

I have control's class in my project. but when I compile, I don't get in the toolbox automaticly
bucz  Monday, September 03, 2007 1:27 PM
It works in VS2005, probably not in earlier versions.
nobugz  Monday, September 03, 2007 1:32 PM
Well, I have VS2005 , ver 8

Maybe It is somewhere, I just don't know where to find it? : ) but for sure not in Toolbox

Also, maybe it is a amtter of some option of control in my project like add-to-toolbox?

bucz  Tuesday, September 04, 2007 5:48 AM
It is an option. Tools + Options, check Show All Settings in lower left, Windows Forms Designer, AutoToolboxPopulate = True.
nobugz  Tuesday, September 04, 2007 9:01 AM

You can use google to search for other answers

Custom Search

More Threads

• Windows User Control :: Help
• Tab Controll
• Problem- Unable to check/uncheck Check box column in datagridview
• Zooming chart in splash Screen
• controlling speaker's volume
• Hash techniques
• Form Resolution Issues
• Image source inconsistency between ToolStripMenuItem and ToolStripButton
• Trusted_connection=true
• Problem detecting changes on parent-child bindingsource