The designer could not be shown for this file because none of the classes within it can be desig

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

[228 byte] By [HadiRiazi] at [2008-2-3]
# 1

Did you just create a new project and get this error? Could you send me the form that you have?

Thanks,

David

DavidTSo at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 2
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

DavidTSo at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 3
If i read you correctly we have to :
1- Repair VS
2- Repair the frame work

Sorry i'm french and i want to be sure of what i read ;o)

lmussier at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 4
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
Koogel at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 5
the simple solution is to delete the ncb file and reload the project, then the designer will open, i only found this out because i am lazy
RobJohno at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 6

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.

planedownstairs at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 7

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

SameerM at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 8
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.

KorayBahar at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 9
This really solve my problems. just add the constructor to baseform will do
AhJack at 2007-9-8 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...