.NET Compact Framework 2.0 for the Desktop Developer. Mark Arteaga OpenNETCF Consulting email@example.com blog.markarteaga.com. Agenda. Mobile Development .NET Compact Framework 2.0 Overview Device Specific Controls Data Access Microsoft.WindowsMobile Namespace Tips & Tricks
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
.NET Compact Framework 2.0 Overview
Device Specific Controls
Tips & Tricks
OpenNETCF Smart Device Framework 2.0
What is it?
Why .NET CF?
What can you develop for?
What’s New in CF 2.0?
What’s Missing in CF 2.0?
First made it’s debut in 2002/2003
Developed to bring the managed developer to the mobile space
Developed to have the same namespaces as the full framework
Has device specific classes and controls
Windows Mobile 5.0 API adds more classes
If you are a .NET shop then why not?
If you are an ISV, why not port your application to potentially 107million users
If you are an enterprise, why not extend some highly used or mission critical desktop application
If you have developed for the desktop then you already know how to develop for a mobile device
Visual Studio 2005 Standard Edition - Includes CF1.0 and CF2.0
C# or VB.Net development experience. Can also use native C++
SDKs – some available with VS2005 some available for download
A real device to test on
A consumer or enterprise focused idea!
Command line compile
Resource files same as the desktop
VB My Objects (My.Resources, My.Webservices, My.Forms)
System.Xml enhancements (XPath, XmlSerializer, Schema)
SQL Mobile replaces SQL CE 2.0
MSMQ now available
Framework 2.0 changes
Xml Schema validation is not supported because of size
Timers – Start()/Stop() are not supported
Remoting is not supported
Sockets – not everything is supported
Reflection does not have Emit namespace
Activated/Deactivated events are not supported, can use GotFocus()/LostFocus() instead
Various controls because not available on Windows Mobile
Tour of VS2005 from a Mobile Perspective
System.Data.SqlServerCE used for SQLMobile
System.Data.SqlClient used to access SQL Server from device
SQL Mobile and Integration with VS2005
Landscape, portrait or square?
VGA or not?
Load data in background threads
Don’t use localhost when calling a webservice
Compile assemblies against the CF
Use source control ‘share’ feature to share Xsd/Typed Datasets
Make sure not to call any device specific calls
Email: firstname.lastname@example.orgWebsites:www.opennetcf.com (OpenNETCF Consulting)www.opennetcf.org (OpenNETCF.org)blog.markarteaga.com (My Blog)blog.opennetcf.org (Blogs of other OpenNETCF Members)