3
Reply

UserControl problem in C# : not useable in Design Mode

msafderiqbal

msafderiqbal

Aug 15 2004 4:16 AM
3.4k
UserControl problem in C# : not useable in Design Mode: ======================================================= I have been programming in Visual Basic .NET for some time, but now I want to move to C# for some reasons. In my VB.NET programs I frequently used UserControls. In C# I want to do the same, but I am having some problems. This is how add a UserControl to my project: (My Project is a Windows Application and the name is namespaceName) 1. I Click: Project > Add User Control 2. I give the name, say controlName. 3. I build the project. But when I select that UserControl(controlName) from the Toolbox and draw it on the Form, a the following error message comes up: The user control 'namespaceName.controlName' could not be loaded. Ensure that the library containing the control has been built and a project reference has been made to the library containing the control. If you have changed the name of the user control, close and re-open the control's designer to update the toolbox item. I have checked all the things mentioned in the message and everything is OK. But still I am having this problem. This also happens when I use Inherited Forms. This never happened in VB.NET. I want to ask if there any problem with my Visual Studio .NET IDE and/or, if there is some thing wrong from my side? Here are the details of my version of Visual Studio .NET: Microsoft ® Development Environment Version 7.0.9466 Copyright © 1987-2001 Microsoft Corporation. All rights reserved. Microsoft ® .NET Framework 1.0 Version 1.0.3705 Copyright © 1998-2001 Microsoft Corporation. All rights reserved. Microsoft ® Visual C# .NET Compiler Version 7.00.9466 for Microsoft ® .NET Framework Version 1.0.3705 Copyright © Microsoft Corporation 2001. All rights reserved. My operating system: Microsoft ® Windows 2000 Advanced Server Version 5.0(Bulid 2195: Service Pack 2) Copyright © 1981-1999 Microsoft Corporation. All rights reserved. Please help me about this problem, as soon as possible.

Answers (3)