The designer could not be shown for this file because none of the classes within it can be desi
Hi;
Im trying to make an smart device application but get this error:
The designer could not be shown for this file because none of the classes within it can be designed.
What do I do ?PLEASE HELP.
Thnx
Doesn't this happen only on project target agaisnt V1 .Net Compact Framework? I believe you ran into a setup bug, did you reinstall VS2005 beta2 or did you upgrade from beta1? There is a know issue where if you did a repair of VS2005 beta2, there is a registry setting that will overwritten the correct one causing the designer not showing up for projects targeting V1 .Net Compact Framework, the work around is to repair / re-install NetCF V1 MSI after repairing VS setup.
David
Try to do this:
1. Find <your solution>.ncb file and move it somewhere else
2. Create new solution with one form.
3. Close new solution and copy <new solution>.ncb file to <your solution>.ncb
I had the same error using vs2005 framework v2. It began suddenly on all classes derived from (inherited from) a windows form base, when no recent changes had occurred with the base. The complete error was:
The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: frmMaintReportingGroup The base class 'Manufacturing.ProjectTracking.frmMaintenance' could not be loaded. Ensure the assembly has been referenced and that all projects have been rebuilt.
To fix, I renamed the base class from frmMaintenance to frmMaintenance2, then did a mass change of all derived classes to inherit from frmMaintenance2 (instead of frmMaintenance). That allowed me to do a rebuild. At that point I renamed everything back to frmMaintenance and was able to rebuild successfully.
Hi,
This is an old post but I have a point to make: Did you check that the default constuctor (zero arguments) was present in the Base Class. I had a similar situation where I had disabled/removed that contructor while having a couple of other overloaded constructors. Adding the below piece of code as in:
public BaseClass()
{
InitializeComponent();
}
in the base class and rebuilding the library again made the designers appear for the inherited classes in the project where i was referncing the library. Thanks.
Regards
Sameer
I have same problem, I update .net 2003 not solved, then unistall and install it again not solved, then i dowload an instal compact framework it is still not workin is there any one who can help me.
I try to create an empty smartdevice project for PocketPC then i can not see Designer. It gives me "The designer could not be shown for this file because none of the classes within it can be designed." Error.