I run the "design a customer contorl for  mobile5" in  MSDN  ,but I get an unsuported error,I don't know how to reslove it ,pls. help me.

Scenario:
In page:
 
The main step is:
  • Create the run-time version of the Graph custom control.
  • Compile the design-time version of the Graph custom control.
  •  
    but when I test the custom contorl, It occur an unsupported Error.
     
    How to distinguish Design time or Running time in Mobile cusotmer Contorl(the NetCF2.0 is different to NetCF1.0)investigate the reason ,I find in the top of graph class.
    there is a sentence 
     #if NETCFDESIGNTIME
    [assembly: System.CF.Design.RuntimeAssemblyAttribute("GraphControl, Version=1.0.845.15148, Culture=neutral, PublicKeyToken=null")]
    #endif
     
    but it is not supported in latest NetCF2.0,only in vs2003's NetCF1.0,we can find the System.CF.Design.dll
    but in Vs2005 system.we can find below dll.
     How to distinguish Design time or Running time in Mobile cusotmer Contorl(the NetCF2.0 is different to NetCF1.0)
    I think maybe it reason which I can't run it in vs2005 mobile environment.
     
    but I don't know how to reslove it,Pls. help me

    相关文章: