VS2005 and Smartphone 2003

Is is possible to develope SP2003 application (C# 1.0 ) under VS2005

I can create the new project, and compile the defaulted windows form ( form1.cs). However, I can't add any item , even a button , on the window form, otherwise the windows form cannot be compiled.

After adding any item, the windows form contains the follwoing code:

this.mainMenu1 = new System.Windows.Forms.MainMenu( this.components );
this.SuspendLayout();

It's strange, well , they are the code in C# 2.0. So does anyone know what's wrong with my VS2005

Thanks for helping.



Answer this question

VS2005 and Smartphone 2003

  • wms103006

    Correct, no buttons on SP because there’s no way to push them without touch screen. You can add them from code but you will get an exception at runtime.



  • Dan H UW

    Thanks Tumanov for helping.

    Are there really no buttons on SP When I use VS2003, I can add buttons on the window form, and compile it without any problem. However, I can never do the same thing with VS2005 , even ,Net SDK 1.1 is installed. The major difference between my VS2005 and VS2003 is VS2003 can filter and hide the components which cannot be applied on SP ( VS2005 doesn't filter any one of them ...strange..).


  • gumtoo

    Yes, it is possible. There are no buttons on SP, so you can't add them. Also you need .Net SDK 1.1 installed to use that type of project. VS 2005 does not install it, so please do it manually if you don't have it.



  • VS2005 and Smartphone 2003