design disappear

Raneem kamel 0 Reputation points
2026-06-14T07:47:18.3733333+00:00

Could not find type 'DVLD.ctrPersonInformation'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built using settings for your current platform or Any CPU.

Developer technologies | Windows Forms

2 answers

Sort by: Most helpful
  1. AI answer

    2026-06-14T07:47:32.1166667+00:00

    The error indicates that the Windows Forms Designer cannot find the type DVLD.ctrPersonInformation because its assembly is not available or not built for the current platform.

    To fix this:

    1. Build the project that defines DVLD.ctrPersonInformation:
      • In Visual Studio, select Build > Build Solution.
      • Ensure the build configuration matches the platform used by the designer (for example, Any CPU or the specific platform mentioned in the error).
    2. Verify the project reference:
      • In Solution Explorer, expand the project that shows the error.
      • Under References (or Dependencies), confirm there is a reference to the project or assembly that contains DVLD.ctrPersonInformation.
      • If missing, right-click References/Dependencies > Add Reference… and add the project/assembly that defines DVLD.ctrPersonInformation.
    3. Rebuild and reopen the form:
      • After adding/fixing the reference, rebuild the solution.
      • Close and reopen the form designer so it can load the control from the newly built assembly.

    If DVLD.ctrPersonInformation is in the same solution but in a custom control project, that project must build successfully before the designer can display it.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

    1 person found this answer helpful.
  2. Nancy Vo (WICLOUD CORPORATION) 8,155 Reputation points Microsoft External Staff Moderator
    2026-06-15T04:32:24.49+00:00

    Hello @Raneem kamel ,

    Thanks for your question.

    Base on Windows Forms Designer error page, this error means the control exists in your project's .Designer.cs file, but the Designer cannot load/instantiate it - usually because the assembly hasn't been compiled yet or has a build error.

    You can refer to the following steps:

    1. The designer needs a compiled assembly to find the type. If ctrPersonInformation is in the same project, I suggest building before the Designer can use it.
    • Build → Rebuild Solution (Ctrl+Shift+B).
    • Then try opening the designer again.
    1. Clean + Delete bin/obj folders
    • Build → Clean Solution
    • Manually delete the bin\ and obj\ folders from your project directory.
    • Rebuild Solution
    • Reopen the Designer
    1. Verify the namespace & class name match exactly
    2. Check the error list window for errors inside ctrPersonInformation.cs or its related files. Please fix all errors → rebuild → reopen Designer.
    3. After rebuilding, please close Visual Studio completely. Then, reopen the solution and build before opening any designer.

    Please try and let me know if it works. I'd be happy to investigate further.

    I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.