A set of .NET Framework managed libraries for developing graphical user interfaces.
The error indicates that the Windows Forms Designer cannot find the type DVLD.ctrPersonInformation at design time. This is a design-time reference problem, not just a runtime one.
To fix it, follow these steps in order:
- Build the project that contains
DVLD.ctrPersonInformation:- In Visual Studio, select Build > Build Solution.
- Ensure the build succeeds without errors.
- Ensure the project/assembly that defines
DVLD.ctrPersonInformationis referenced:- In the project where the form is designed, open Solution Explorer.
- Right‑click References (or Dependencies in SDK‑style projects) and choose Add Reference….
- Select the project or assembly that contains
DVLD.ctrPersonInformationand add it.
- Confirm the type name and namespace:
- Open the code file where
ctrPersonInformationis defined. - Verify the namespace is
DVLDand the class name is exactlyctrPersonInformation(including case). - In the designer file (
.Designer.cs), ensure the fully qualified name matches (DVLD.ctrPersonInformation).
- Open the code file where
- Clean and rebuild:
- Use Build > Clean Solution, then Build > Rebuild Solution.
- Close and reopen the designer if it was open.
If ctrPersonInformation is a user control in the same solution, the most common cause is that its project has not been built yet or the reference between projects is missing.
References: