Upgrading from OpenNetCF 1.4 to 2.2

Last post 04-29-2008 17:39 by neil. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 04-28-2008 0:53

    Upgrading from OpenNetCF 1.4 to 2.2

    I've got an application written in VB .NET in VS2003 for a CE .NET 4.2 device that now needs to run on CE .NET 5.0.

    I ran the standard convert to get it in VS2005 and I removed the OpenNetCF 1.4 References and added the 2.2.

     However, when I try and open any Forms I get 'The designer cannot process the code at line n' and then I get many errors to do with the progress bar control like:

    Me.ProgressBarEx1.BackColor = System.Drawing.SystemColors.Control 


    Also, after the install of 2.2 I don't get the controls within the Toolbox in VS like I used to with 1.4.

     
    Can anyone offer any advice as to where I'm going wrong or any steps for converting 1.4 projects to 2.2? 

     

  • 04-28-2008 7:13 In reply to

    • neil
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-30-2007
    • North Wales
    • Posts 1,088

    Re: Upgrading from OpenNetCF 1.4 to 2.2

    ChrisDeveloper:
     However, when I try and open any Forms I get 'The designer cannot process the code at line n' and then I get many errors to do with the progress bar
    ProgressBarEx was renamed to ProgressBar2 when we moved to v2.0. See the wiki for more changes. 

    ChrisDeveloper:
    Also, after the install of 2.2 I don't get the controls within the Toolbox in VS like I used to with 1.4.
    This is the expected behaviour. Three years ago, when we launched Smart Device Framework 2.0, we introduced 2 SKUs (Community Edition and Extensions for Visual Studio). The Community Edition has the full functionality of the Smart Device Framework, but is limited in its integration into Visual Studio. The Extensions for Visual Studio provides all the features of the Community Edition with full integration into Visual Studio, including designer support. Pricing for the Extensions starts at US$50.

  • 04-29-2008 2:06 In reply to

    Re: Upgrading from OpenNetCF 1.4 to 2.2

    Thanks for your response Neil.

    Can I just change all references in the code to ProgressBar2 or do I need to remove the objects in VS2003, buy the SDK and add them from the Toolbar?

     I do intend to buy the SDK in the future when I do some more development work, but at this stage I just want the easiest way to get the app working on CE .NET 5.0 in VS2005.

     

  • 04-29-2008 2:35 In reply to

    • neil
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-30-2007
    • North Wales
    • Posts 1,088

    Re: Upgrading from OpenNetCF 1.4 to 2.2

    The absolute easiest way would be to buy the Smart Device Framework Extensions and use the designer support, but a simple find & replace on ProgressBarEx should do the trick.  

  • 04-29-2008 11:41 In reply to

    Re: Upgrading from OpenNetCF 1.4 to 2.2

    How does it cope with namespace changes e.g. Me.BatteryLife1.BatteryLifePercent changing to Me.BatteryLife1.PowerStatus.BackupBatteryLifePercent?

     Will it change my existing 1.4 refernces to 2.2?
     

  • 04-29-2008 17:39 In reply to

    • neil
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-30-2007
    • North Wales
    • Posts 1,088

    Re: Upgrading from OpenNetCF 1.4 to 2.2

    Any changes that are necessary will need to be performed manually. Use the wiki link I gave earlier as a guide.

Page 1 of 1 (6 items)