Book description
The Microsoft® Windows® .NET Compact Framework brings the power of the .NET Framework to handheld devices such as Pocket PCs and smart phones. Learn exactly how to build killer applications—and how to solve typical problems—in developing for resource-constrained devices with this book. You’ll find specifics on how to develop GUI elements with Windows Forms, access and store data with Microsoft ADO.NET and integrate it across the enterprise with XML Web services, work with Microsoft SQL Server™ CE, develop applications that connect and disconnect across wireless networks, and more—all with working code samples. You even get a quick reference to the differences between the .NET Compact Framework and the full .NET Framework.
Table of contents
-
Microsoft® .NET Compact Framework (Core Reference)
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
- A Note Regarding Supplemental Files
- Dedication
- Acknowledgments
- Introduction
-
I. .NET Compact Framework Architecture
-
1. Introducing the .NET Compact Framework
- A Brief History of Smart Mobile Computing Devices
- Microsoft .NET
- .NET Compact Framework Target Platforms
- Developer Tools
- Unique Challenges Facing Mobile Developers
- Summary
- 2. .NET Framework Fundamentals
-
1. Introducing the .NET Compact Framework
-
II. Developing Applications with the .NET Compact Framework
-
3. GUI Development with Windows Forms
- Introducing the System.Windows.Forms Namespace
- Creating Windows Forms
- Comparing Forms Behavior in the .NET Framework and the .NET Compact Framework
-
Exploring Windows Forms Controls
- Creation of Controls
- Members of Controls
-
.NET Compact Framework Controls
- The Button Control
- The CheckBox Control
- The ComboBox Control
- The ContextMenu Control
- The DataGrid Control
- The DomainUpDown Control
- The HScrollBar and VScrollBar Controls
- The ImageList Control
- The Label Control
- The ListBox Control
- The ListView Control
- The MainMenu Control
- The NumericUpDown Control
- The OpenFileDialog and SaveFileDialog Controls
- The Panel Control
- The PictureBox Control
- The ProgressBar Control
- The RadioButton Control
- The StatusBar Control
- The TabControl Control
- The TextBox Control
- The Timer Control
- The ToolBar Control
- The TrackBar Control
- The TreeView Control
- Summary
-
4. Building Windows Forms Applications
- Working with Forms
- Working with the InputPanel Control
- Using the MainMenu Control
- Using the ToolBar Control
- Programming Form Activation and Deactivation on Pocket PC
- Handling the Tap-and-Hold Event
- Handling Pocket PC Hardware Keys
- Giving an Application Its Final Touches
- General Design Guidelines
- Summary
-
5. Testing and Debugging
- Detecting and Correcting Programming Errors
- Using the Debugger
- Drawing on Debugger Features
- Unsupported Debugger Features
- Tracing Output from an Application
- Using Assertions Within an Application
- Handling Exceptions in the Debugger
- Controlling Release Code Size
- Generating Longer Error Messages in Exceptions
- Adopting Strategies for Testing and Debugging
- Configuring the Emulator from Visual Studio
- Starting the Emulator Manually
- Using Emulator Skins
- Summary
-
6. Completing and Distributing Your Application
- Choosing Project Settings
-
Packaging Your Application
- Creating Processor-Specific CAB Files
- Building CAB Files Using Visual Studio .NET
- Building CAB Files Using CAB Wizard
- Using the Resource File Generator
-
Understanding the Configuration File
- Configuration File Directory Identifiers
- Description of the Version Section
- Applying the CEStrings Section
- Using the Strings Section
- Description of the CEDevice Section
- Specifying the DefaultInstall Section
- Defining the SourceDisksNames Section
- Defining the SourceDisksFiles Section
- Specifying the DestinationDirs Section
- Usage of the CopyFiles Section
- Description of the AddReg Section
- Usage of the CEShortCuts Section
- Distributing Your Application
- Using Trickle-Feed Deployment
- Installing Assemblies into the Global Assembly Cache
- Summary
-
3. GUI Development with Windows Forms
-
III. Common Programming Tasks
- 7. Working with Collection Classes
-
8. Working with Dates and Strings
- Understanding the String Class
- Using the StringBuilder Class
- Using Dates
- Using Regular Expressions
- Formatting Strings for Output
- Parsing
- Summary
-
9. Working with XML
- Using XML in the .NET Compact Framework
- Differences from the Full .NET Framework
-
Reading XML with the XmlReader Class
- Understanding the XmlTextReader Class
- Constructing an XmlTextReader Object
- Reading an XML Document with the XmlTextReader Class
- Disregarding Unnecessary Nodes
- Reading Attribute Nodes
- Handling Namespaces with XmlTextReader
- Dealing with Validation, DTDs, and Entities
- Handling Comment Nodes
- Handling CDATA Nodes
- Writing XML with the XmlWriter Class
- Processing XML with the XmlDocument Class
- Summary
-
10. Input and Output
-
Understanding the Stream Class
- Creating a FileStream Object
- Specifying File Access Modes for Streams
- Specifying File Sharing for Streams
- Reading and Writing Bytes Using a FileStream Object
- Using the BinaryReader and BinaryWriter Classes
- Seeking on Streams
- Locking Files
- Using the NetworkStream Class
- Handling Network Errors When Using NetworkStream
- Performing Asynchronous Read/Write Operations on NetworkStream Objects
- Using the MemoryStream Class
- Implementing a Product Ordering Example
- Using the StreamReader and StreamWriter Classes
- Processing Strings with StringReader and StringWriter
- Using the File, Path, and Directory Classes
- Summary
-
Understanding the Stream Class
-
11. Networking
- Using the System.Net Namespace
-
Using the WebRequest and WebResponse Classes
- Understanding WebRequest and WebResponse Basics
- Fetching a Resource Using HTTP
- Handling Errors
- Working with HTTP Headers
- Network Transfer Encoding
- Sending Data to the Server with HTTP GET and HTTP POST
- Alternatives to Cookies for Session State Support
- Securing Network Transfers with SSL
- Authenticating Requests with the NetworkCredential Class
- Asynchronous Web Requests
- Making Network Requests via a Proxy Server
- Determining Whether the Device Is Connected
- Working with Sockets
- Serial Communications
- Summary
- 12. .NET Compact Framework Application Security
-
IV. Connecting with Data
- 13. Accessing Data
-
14. ADO.NET Data Objects
- Recognizing the Advantages of ADO.NET
- Introducing the ADO.NET Objects
-
Building a DataSet Object from Scratch
- Adding the DataSet, DataTable, and DataColumn Objects
- Adding DataRow Objects
- Reading, Updating, or Deleting a DataRow Object
- Finding a DataRow Object
- Viewing the XML Representation of a DataSet Object
- Using Typed DataSet Objects
- Creating a DataSet Object with the DataSet Designer
- Loading a Saved Schema
- Using Multitable DataSet Objects
- Saving a DataSet Object Locally
- Working with Updates, Data Views, and Data Binding
- Summary
-
15. Integrating Data with SQL Server
- Examining Data Access Architecture
- Retrieving Data
- Binding Data
- Updating Data
- Using SQL Server Stored Procedures
- SQLXML
- Summary
-
16. Working with XML Web Services
- XML Web Services Architecture
- XML Web Services Infrastructure
- Outline of an XML Web Service at Work
- Compact Framework Limitations
- A Simple XML Web Service
- A Client for the Simple XML Web Service
- A Web Service That Returns a Dataset
- Procedure for Returning a Dataset for Update
- Design Considerations for XML Web Services
- Summary
-
17. Using SQL Server CE
- Using SQL Server on a Smart Device
- Programming a SQL Server CE Application
- Programming Remote Data Access
- Using Merge Replication
- Choosing Between RDA and Merge Replication
- Summary
-
V. Advanced Mobile Application Development
- 18. Custom Controls
- 19. Globalization and Localization
-
20. Multithreading
- Understanding Multithreading
- Scheduling
- Creating a Multithreaded Application
- Synchronizing Threads and Thread Safety
- Using Multithreading with Controls
- Comparing the Two Frameworks
- Summary
- 21. Graphics Programming
-
22. Interoperating with Native Code
- Understanding Managed and Unmanaged Code
- Writing Custom Unmanaged DLLs
-
Using P/Invoke
- Declaring an Unmanaged Code Function
- Declaring Unmanaged Code Functions Using C#
- Declaring Unmanaged Code Functions Using Visual Basic .NET
- Calling the Unmanaged Code Function
- Handling Run-Time Errors
- Dealing with Special Cases: The EntryPoint Property
- Marshaling Parameters
- Marshaling Value and Reference Types
- Passing Value Parameters
- Marshaling Alternative Types
- Using Directional Attributes
- Working with Symbolic Constants and Enumerated Types
- Processing Reference Types
- Passing Arrays
- Passing String and StringBuilder Variables
- Passing Structures and Classes
- Marshaling More Complex Structures
- Calling Conventions
- Using Callbacks and Delegates
- Marshaling DateTime Objects
- Calling the Windows CE API
- Calling COM Objects
- Using Wrapper Functions for COM Objects
- Summary
- 23. Migrating eMbedded Visual Tools Applications and Cross-Framework Development
-
A. .NET Compact Framework Base Class Libraries
- Microsoft.VisualBasic Namespace
- Microsoft.WindowsCE.Forms Namespace
- System Namespace
- System.CodeDom Namespace
- System.Collections Namespace
- System.Collections.Specialized Namespace
- System.ComponentModel Namespace
- System.ComponentModel.Design Namespace
- System.Configuration.* Namespaces
- System.Data Namespace
- System.Data.Common Namespace
- System.Data.Odbc Namespace
- System.Data.OleDb Namespace
- System.Data.SqlClient Namespace
- System.Data.SqlServerCe Namespace
- System.Data.SqlTypes Namespace
- System.Diagnostics Namespace
- System.DirectoryServices Namespace
- System.Drawing Namespace
- System.Drawing.Design Namespace
- System.Drawing.Drawing2D Namespace
- System.Drawing.Imaging Namespace
- System.Drawing.Printing Namespace
- System.Drawing.Text Namespace
- System.EnterpriseServices Namespaces
- System.Globalization Namespace
- System.IO Namespace
- System.Management Namespaces
- System.Messaging Namespace
- System.Net Namespace
- System.Net.Sockets Namespace
- System.Reflection Namespace
- System.Resources Namespace
- System.Runtime.CompilerServices Namespace
- System.Runtime.InteropServices Namespace
- System.Runtime.Remoting Namespaces
- System.Runtime.Serialization Namespaces
- System.Security Namespace
- System.Security.Cryptography.X509Certificates Namespace
- System.Security.Permissions Namespace
- System.Security.Policy Namespace
- System.ServiceProcess Namespace
- System.Text Namespace
- System.Text.RegularExpressions Namespace
- System.Threading Namespace
- System.Timers Namespace
- System.Web Namespaces
- System.Web.Services Namespace
- System.Web.Services.Description Namespace
- System.Web.Services.Protocols Namespace
- System.Windows.Forms Namespace
- System.Windows.Forms.Design Namespace
- System.Xml Namespace
- System.Xml.Schema Namespace
- System.Xml.Serialization Namespace
- System.Xml.XPath Namespace
- System.Xml.Xsl Namespace
- B. About the Author
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
Product information
- Title: Microsoft® .NET Compact Framework (Core Reference)
- Author(s):
- Release date: January 2003
- Publisher(s): Microsoft Press
- ISBN: 9780735617254
You might also like
book
Microsoft® .NET Compact Framework Kick Start
The primary goal of .NET Compact Framework is to bring the familiar experience of developing .NET …
book
Data-Driven Services with Silverlight 2
This comprehensive book teaches you how to build data-rich business applications with Silverlight 2 that draw …
book
IronRuby Unleashed
Ruby has built an enormous following of developers attracted by its intuitiveness, flexibility, and simplicity. Meanwhile, …
book
C# 4.0 Unleashed
C# 4.0 Unleashed is a practical reference focusing on the C# language and the .NET platform …