Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Make a componenent with IComponent in a nested namespace
 

Make a componenent with IComponent in a nested namespace

Hi I'm trying to make a component for winforms with IComponent.

My component appear and desappear from the toolbox all the time. I realise that the component need to be in a single namespace (ex: namespace MyProjec) and not innested namespace (ex: namespace MyProject.Components). In the last case my componnent deaspear from the toolbox.

It is normal or I make a mistake?
Sylver1109  Friday, June 12, 2009 7:09 PM
Hi Sylver1109,

Base on my test, it doesn't related to the namespace.
You can try the way listed in the following thread to "repair" the ToolBox.
http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/887c0adc-0c26-4789-b563-46d294177eb6

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Monday, June 15, 2009 9:44 AM
Just a little bit more specifiaction.... The componenent was created in a 'single' namespace originaly with 'new component' on the contextual menu on the project. After I chaged the namespace fora nested namespace(now the component desapear from toolbox). if I decide to create a componenent whit the contextual menu on a sub folder in the project, my componnent is in a nested namespace and appear in the toolbox.

I'm working with Visual Studio 2008 - C# - .NET 3.5. after each change I always rebuid and even try to close and reopen the solution (fro try to flush the toolbox caching)

any explication?
Sylver1109  Friday, June 12, 2009 7:16 PM
Hi Sylver1109,

Base on my test, it doesn't related to the namespace.
You can try the way listed in the following thread to "repair" the ToolBox.
http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/887c0adc-0c26-4789-b563-46d294177eb6

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Monday, June 15, 2009 9:44 AM

You can use google to search for other answers

Custom Search

More Threads

• Can't add user control to form
• Virtual ListView Control: iImage, iSubItem
• Runtime resize handles
• Windows application with HtML Templates
• How do i .....?
• Cannot CreateDesigner for MainMenu
• Access Button / Form from Inherited Control
• Finding dynamically created controls in Windows Form
• problem with coding voice activated
• Adding a custom property designer to a form that will be inherited