Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 17 Microsoft’s Approach 1 –.NET Mobile Framework Rob Pooley.

Slides:



Advertisements
Similar presentations
Tahir Nawaz Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a.
Advertisements

Windows Programming 1 Part 1 dbg --- Getting Acquainted with Visual Studio.NET and C#
© by Pearson Education, Inc. All Rights Reserved.
.NET Framework Overview Pingping Ma Nov 16 th, 2006.
CIM2564 Introduction to Development Frameworks 1 Overview of a Development Framework Topic 1.
Overview of the.NET Framework. What is the.NET Framework A new computing platform designed to simplify application development A consistent object-oriented.
CSE3030Lecture 11 Know Your User The First Slogan.
Introduction to the C# Programming Language for the VB Programmer.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Tahir Nawaz Visual Programming C# Week 2. What is C#? C# (pronounced "C sharp") is an object- oriented language that is used to build applications for.
Platforms and tools for Web Services and Mobile Applications Introduction to C# Bent Thomsen Aalborg University 3rd and 4th of June 2004.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 19 Microsoft’s Approach 1 –.NET Mobile Framework part 2 Rob.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 18 Microsoft’s Approach 1 –.NET Mobile Framework Rob Pooley.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
Using.NET Skills To Build Mobile Applications In Compact Framework Punit Shah Technical Lead | Microsoft |
.NET, and Service Gateways Group members: Andre Tran, Priyanka Gangishetty, Irena Mao, Wileen Chiu.
Saving and Loading Simple Text Files A sequential file stores characters one after the other like songs on a cassette tape. New characters are added to.
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.
CSCI 3327 Visual Basic Chapter 1: Introduction to Visual Basic
© 2004 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Programming the Web Using ASP.Net Chapter 2: The ASP.Net Template Dave.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
1 Introduction to.NET Framework. 2.NETFramework Internet COM+ Orchestration Orchestration Windows.NET Enterprise ServersBuildingBlockServices Visual Studio.NET.
Introduction to .Net Framework
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
ASP.NET The.NET Framework. The.NET Framework is Microsoft’s distributed run-time environment for creating, deploying, and using applications over the.
High thoughts must have high language. Aristophanes
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
Module 1: Introduction to C# Module 2: Variables and Data Types
 2002 Prentice Hall. All rights reserved. 1 Introduction to Visual Basic.NET,.NET Framework and Visual Studio.NET Outline 1.7Introduction to Visual Basic.NET.
Microsoft Visual Basic 2005: Reloaded Second Edition
Introduction to .NET Rui Ye.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
ASP.NET  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
Windows CE 시스템 개발 개요. 임베디드시스템소프트웨어 -Windows CE 2 Overview  Selecting a Windows Embedded Operating System  The Windows CE Platform Development Cycle.
CIS 375—Web App Dev II Microsoft’s.NET. 2 Introduction to.NET Steve Ballmer (January 2000): Steve Ballmer "Delivering an Internet-based platform of Next.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Overview of System Development. Overview Selecting a Windows Embedded Operating System The Windows CE Platform Development Cycle The Application Development.
Lecture 1 Programming in C# Introducing C# Writing a C# Program.
Module 1: Overview of the Microsoft.NET Platform.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
ASP.NET.. ASP.NET Environment ASP.NET is Microsoft's programming framework that enables the development of Web applications and services. It is an easy.
Programming in C#. I. Introduction C# (or C-Sharp) is a programming language. C# is used to write software that runs on the.NET Framework. Although C#
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Introduction to .NET Framework
Rajiv and Shipra Introduction to.NET (asp.net,c#,vb)
Lesson 2 What is ASP.NET? What is ASP.NET? What is Web Matrix? What is Web Matrix? What are the features of Web Matrix? What are the features of Web Matrix?
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Introducing Visual Studio.NET Petar Banov. Introducing Visual Studio.NET What is.NET all about?.NET Technologies Visual Studio.NET.
Windows CE 시스템 개발 개요. 모바일운영체제 - Windows CE 2 Overview  Selecting a Windows Embedded Operating System  The Windows CE Platform Development Cycle  The.
Module 3: Using Microsoft.NET- Based Languages. Overview Overview of the.NET-Based Languages Comparison of the.NET-Based Languages.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
PRIOR TO WEB SERVICES THE OTHER TECHNOLOGIES ARE:.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 18 Microsoft’s Approach 1 –.NET Mobile Framework part 2 Rob.
Reading Flash. Training target: Read the following reading materials and use the reading skills mentioned in the passages above. You may also choose some.
Microsoft .NET A platform that can be used for building and running windows and web applications such that the software is platform and device-independent.
Getting Started with.NET Getting Started with.NET/Lesson 1/Slide 1 of 31 Objectives In this lesson, you will learn to: *Identify the components of the.NET.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
A Detailed Introduction To Visual Studio.NET CRB Tech ReviewsCRB Tech Reviews introduces you to the world of Visual.
Introducing the Microsoft® .NET Framework
Introduction to .NET Framework Ch2 – Deitel’s Book
Microsoft .NET Presentation
DOT NET ARCHITECTURE (OR) DOT NET FRAME WORK ARCHITECTURE
Presentation transcript:

Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 17 Microsoft’s Approach 1 –.NET Mobile Framework Rob Pooley

Programming Handheld and Mobile devices 2.NET Code written on the.NET Framework platform is called managed code. The term "managed code" refers to the fact that the Common Language Runtime (CLR) provides several assurances for such code: Managed code cannot have bad pointers. Managed code cannot create memory leaks. Managed code supports strong type-safety. A key benefit of managed code is that the managed development environment handles certain common errors that plague Win32® programmers.

Programming Handheld and Mobile devices 3 Background The.NET Compact Framework simplifies application development on smart devices. Currently this includes the Pocket PC, Pocket PC 2002, Pocket PC Phone Edition and other devices running Windows CE.NET 4.1 or later. You will need Visual Studio.NET 2003 to build applications that target the.NET Compact Framework. You can build applications using either Visual C#.NET, Visual Basic.NET, or both.

Programming Handheld and Mobile devices 4 Elements of the Compact Framework The.NET Compact Framework has two main components: the common language runtime and the.NET Compact Framework class library. –The runtime is the foundation of the.NET Compact Framework. It is responsible for managing code at execution time, providing core services such as memory management and thread management while enforcing code safety and accuracy. Code that targets the runtime is known as managed code; code that does not target the runtime, as is the case with eMbedded Visual C++, is known as unmanaged, or native code. –The.NET Compact Framework class library is a collection of reusable classes that you can use to quickly and easily develop applications. This framework was designed with porting in mind, whether to Microsoft or third-party platforms. What does this mean to you? Simply that the coding techniques and the applications you create today to run on a Pocket PC could run on other platforms, such as a cell phone or another vendor's PDA, if a version of the.NET Compact Framework was created for that platform.

Programming Handheld and Mobile devices 5 Common Language Runtime The common language runtime provides a code-execution environment that manages code targeting the.NET Compact Framework. Code management can take the form of memory management, thread management, security management, code verification and compilation and other system services. The runtime is designed to enhance performance. It uses just-in-time (JIT) compiling, which enables managed code to run in the native machine language of the platform on which your application is running. This allows you to create applications that can target a variety of platforms and not have to worry about recompiling or generating executables that target each specific platform. Even though your mobile application is written in Visual Basic.NET or C#.NET, and as such is managed code, you are still able to incorporate functions and subroutines stored externally in dynamic link libraries (DLLs), including the Windows CE APIs. The.NET Compact Framework provides the data types and support for structures to allow you to easily incorporate functions from the Windows CE APIs into your application.

Programming Handheld and Mobile devices 6.NET Compact Framework Class Library The.NET Compact Framework class library is a collection of reusable classes that tightly integrate with the common language runtime. Your applications leverage these libraries to derive functionality. As you would expect from an object-oriented class library, the.NET Compact Framework types enable you to accomplish a range of common programming tasks, including tasks such as interface design, leveraging XML, database access, thread management and file I/O.

Programming Handheld and Mobile devices 7 Form-related Classes The.NET Compact Framework implements a subset of the System.Windows.Forms and System.Drawing classes, which allows you to construct a rich Windows CE-based user interface for your device application. The Form Designer in Visual Studio.NET manages much of the interaction with these classes for you. The implementation of Windows Forms under the.NET Compact Framework includes support for forms, most controls found in the.NET Framework, hosting third- party controls, bitmaps and menus. Table 1 lists the controls included with the.NET Compact Framework.

Programming Handheld and Mobile devices 8 Data and XML Classes The.NET Compact Framework includes a set of classes that allow you to easily incorporate data (whether from a relational or non-relational data source), including XML content, into your mobile applications. These classes are defined under the System.Data and System.Xml namespaces. The implementation of both data and XML classes in the.NET Compact Framework is a subset of that found in the.NET Framework.

Programming Handheld and Mobile devices 9 Web Services The.NET Framework is much about Web services. In the.NET Compact Framework System.Web namespace, you have a scaled-down version of the capabilities and functionality offered in the corresponding.NET Framework namespace. Most significantly, you can create Web services clients but are not able to host Web services under the.NET Compact Framework. These XML Web service clients can be either synchronous or asynchronous. Creating an XML Web service client that targets the.NET Compact Framework is easy. The Visual Studio.NET IDE does much of the work for you.

Programming Handheld and Mobile devices 10 GDI Support The.NET Compact Framework provides support for the basic GDI drawing elements including –bitmaps, –brushes, –fonts, –icons and –pens through the System.Drawing namespace.

Programming Handheld and Mobile devices 11 Base Classes The.NET Compact Framework provides a robust set of base classes that expose a wide-range of functionality for use by developers. This underlying infrastructure enables you to write rich.NET applications including being able to create –multi-threaded applications (System.Threading), –leveraging networking resources (System.Net), and –working with files (System.IO).

Programming Handheld and Mobile devices 12 IrDA Support Windows CE devices, such as the Pocket PC and Pocket PC 2002, include infrared (IR) communication capabilities. In support of this, the.NET Compact Framework includes classes that allow you to leverage IR communication from within your application. These classes are part of the System.Net.IrDA namespace. You can use IR to communicate with Pocket PCs, printers and other IR-enabled devices.

Programming Handheld and Mobile devices 13 Bluetooth Support The.NET Compact Framework does not natively provide support for Bluetooth. You can access most third-party Pocket PC implementations of Bluetooth via either serial port communications or through a provider's API.

Programming Handheld and Mobile devices 14 Simple C# examples for.NET Class Form1 { static void Main() { Application.Run(new Form1()); } private void menuItem2_Click(object sender, System.EventArgs e) { Application.Exit(); }

Programming Handheld and Mobile devices 15 A second form MyNewForm mynewformForm = new MyNewForm (); mynewformForm.ShowDialog();

Programming Handheld and Mobile devices 16 Passing Values to Controls in Other Forms Let's demonstrate setting a control's value by altering a text label. The sequence of events is: Create a new instance of the Form that contains the control (but don't display it). Change the property corresponding to the text label of the control. Display the Form. Assume we have added a text label called label1 to the new Form, and we can do all that with some code like this: MyNewForm mynewformForm = new MyNewForm (); mynewformForm.label1.Text = "Hello World"; mynewformForm.ShowDialog(); The only thing to remember is that the label1 property, by default, will be private so the code for the main Form won't be able to see it. You get around this by setting it to Public

Programming Handheld and Mobile devices 17 What you see Note The size of the Form is not important as the Pocket PC will always expand it to fill the screen.

Programming Handheld and Mobile devices 18 Adding a button If you are creating a new Form that acts as a dialog box, you should also add some way for the user to close it, such as a new button with code like the following attached: private void button1_Click(object sender, System.EventArgs e) { this.Close(); } The new Form will have a close button in the top right for the user to click

Programming Handheld and Mobile devices 19

Programming Handheld and Mobile devices 20 Adding the tabs tabs provide access to multiple pages all stored on one dialog. These can be very useful if your application has a lot of settings for the user to work through. Use the TabPage Collection to add and rename new tab pages. Each page is a like a blank form to which you add controls. Treat each tab page as a Form, and place the controls on it as you see fit. The Pocket PC will look after displaying the pages and controls