A set of .NET Framework managed libraries for developing graphical user interfaces.
The error indicates that the Windows Forms Designer cannot locate the type DVLD.ctrPersonInformation at design time. This is treated the same as “The type '<type name>' could not be found” / “Could not find type '<type name>'” in the designer.
Use these steps:
- Build the project that contains
DVLD.ctrPersonInformation- In Visual Studio, select Build > Build Solution.
- If
ctrPersonInformationis a custom user control in the same solution, it must compile successfully before the designer can load it.
- Check project references
- If
DVLD.ctrPersonInformationis in another project (for example, a class library), open Solution Explorer, right‑click References (or Dependencies) of the form project, choose Add Reference…, and add a reference to the project or assembly that definesDVLD.ctrPersonInformation. - Ensure any assemblies that
DVLD.ctrPersonInformationdepends on are also referenced.
- If
- Verify the type name and namespace
- Open the code file where
ctrPersonInformationis defined and confirm its namespace isDVLDand the class name is exactlyctrPersonInformation(including case). - Open the
.Designer.csfile of the form that uses this control and verify the fully qualified name matches the actual namespace and class name.
- Open the code file where
- Confirm platform/target settings
- Make sure the project that defines
DVLD.ctrPersonInformationand the project that uses it are built for compatible platforms (for example, both Any CPU, or both x86). Then rebuild the solution.
- Make sure the project that defines
- If the error persists only in the designer
- Clean and rebuild the solution.
- Close and reopen the form designer after a successful build.
If DVLD.ctrPersonInformation was removed or renamed, update or remove the references to it from the form’s designer code.
References: