locked
C# + WM6 + iPaq 514 button ProblemC# + WM6 + iPaq 514 button Problem RRS feed

  • Question

  • Halo Guyz!

    Im trying to create my first simple program in visual studio 2008 with C# language. I want to create just a button in the form and here is the code i use

    private void button1_Click(object sender, EventArgs e)
    {

    button1.Text = "Yes!";
    }






    When i m going to Deploy it in my WM6 Device (HP iPaq 514) It returns me an NotSupportedException Error for the button. In this line of the Form1.Designer.cs

    Does anyone why this happens ? Is possible that my phone can't create a new button ? Can anyone tell me how to fix this problem ?

    Here is a screen-shot with the error

    http://img411.imageshack.us/img411/4362/errorh.png

    Thanks in advanced!

    Sunday, February 21, 2010 8:30 PM

Answers

  • Hi,

    The HP IPaq 514 is a Windows Mobile Standard device, therefore it does not have a touch screen. Therefore you can not create buttons on this device hence the NotSupportedException.

    The following MSDN page details which controls are supported on which platforms :-

    http://msdn.microsoft.com/en-us/library/hf2k718k.aspx

    Also if you are developing for a Standard device it is probably best changing your target platform for your project so that your toolbox is set for this platform. You can do this by right clicking on your project in the Solution Explorer and selecting Change Target Platform, you can then select the Standard SDK rather than the Professional SDK. Then if you build your project again then you should be presented with errors regarding which controls are not supported of that platform.

    Hope this helps.

    Paul Diston
    http://www.smartmobiledevice.co.uk/
    • Marked as answer by warrentang Wednesday, February 24, 2010 6:40 AM
    Sunday, February 21, 2010 8:40 PM

All replies

  • Hi,

    The HP IPaq 514 is a Windows Mobile Standard device, therefore it does not have a touch screen. Therefore you can not create buttons on this device hence the NotSupportedException.

    The following MSDN page details which controls are supported on which platforms :-

    http://msdn.microsoft.com/en-us/library/hf2k718k.aspx

    Also if you are developing for a Standard device it is probably best changing your target platform for your project so that your toolbox is set for this platform. You can do this by right clicking on your project in the Solution Explorer and selecting Change Target Platform, you can then select the Standard SDK rather than the Professional SDK. Then if you build your project again then you should be presented with errors regarding which controls are not supported of that platform.

    Hope this helps.

    Paul Diston
    http://www.smartmobiledevice.co.uk/
    • Marked as answer by warrentang Wednesday, February 24, 2010 6:40 AM
    Sunday, February 21, 2010 8:40 PM
  • Thanks a lot Paul Diston !! Now i can play with tools that my device Support.!
    • Marked as answer by n3t Monday, February 22, 2010 11:23 AM
    • Unmarked as answer by warrentang Wednesday, February 24, 2010 6:40 AM
    Monday, February 22, 2010 10:23 AM