Windows Develop Bookmark and Share   
 index > Windows Forms Designer > UserControls not showing up in toolbox
 

UserControls not showing up in toolbox

Usercontrols don't seem to show up in any of my VS2005 projects' toolboxes anymore. They used to, but I don't kow what happened. This is what I have been trying to get usercontrols into the toolbox:

Create a new C# windows application
Add UserControl named UserControl1 (it is in the root of the porect, not in a folder)
compile

I have checked under every single tab in the toolbox, including "All Windows Forms" but UserControl1 doesn't show. I've also tried closing and reopening the toolbox but that doesn't help.

I have seen this http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=53820&SiteID=1
but I dont have a tab called "[ProjectName] Components." is that the problem?
jdh989  Sunday, October 01, 2006 8:27 PM

Does it work if you do this:

Create a new C# Windows Application in a new solution (don't use a solution folder)

Add a user control

Build

Open Form1 in the designer.

If this does not work, can you check your options at Tools->Options->WindowsForms->AutoToolboxPopulate?

Another thing you can try is to reset your toolbox (right click and choose "reset toolbox"). There might be some old tabs that are intefering with the feature.

Benjamin Wulfe - MS  Tuesday, October 03, 2006 12:27 AM

Oi, the same thing happened to me today and I cannot get it fixed! WTF ?

Tried "Cleaning" the solution, even closed Visual Studio and manually cleared all the Bin and Obj folders, but nada;nothing;zulch!

Anyone have any ideas ?

Jaans  Monday, October 02, 2006 9:54 PM

Does it work if you do this:

Create a new C# Windows Application in a new solution (don't use a solution folder)

Add a user control

Build

Open Form1 in the designer.

If this does not work, can you check your options at Tools->Options->WindowsForms->AutoToolboxPopulate?

Another thing you can try is to reset your toolbox (right click and choose "reset toolbox"). There might be some old tabs that are intefering with the feature.

Benjamin Wulfe - MS  Tuesday, October 03, 2006 12:27 AM
Thank you very much,

Tools->Options->WindowsForms->AutoToolboxPopulate was the problem. I'm not sure how it was toggled off since I didn't even know about that option.
jdh989  Tuesday, October 03, 2006 11:26 PM

You can use google to search for other answers

Custom Search

More Threads

• Design-time functionality at run-time
• BUG!!! Codedom compiler doesn't trigger an error
• 'System.Windows.Forms.Label' does not contain a definition for 'PreferredHeight'
• ComponentAdding event: Cancel process of adding component
• Change Font Color While Typing
• AutoScrolling
• Option button and Dropdown button
• Failure to load designer due to VS2005B2 fault
• Outlook Address Card View
• 120dpi and vs.net form designer