Understanding Desktop Applications Lesson 5. Objective Domain Matrix Skills/ConceptsMTA Exam Objectives Understanding Windows Forms Applications Understand.

Slides:



Advertisements
Similar presentations
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Advertisements

CS0004: Introduction to Programming Visual Studio 2010 and Controls.
© by Pearson Education, Inc. All Rights Reserved.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
A graphical user interface (GUI) is a pictorial interface to a program. A good GUI can make programs easier to use by providing them with a consistent.
Automating Tasks With Macros
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 1 Tariq Aziz and Kevin Jones.
Graphical User Interface (GUI) A GUI allows user to interact with a program visually. GUIs are built from GUI components. A GUI component is an object.
Visual Basic Project 1 IDS 306 Spring 1999 V. Murphy.
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
Compunet Corporation Programming with Visual Basic.NET GUI Week # 11 Tariq Ibn Aziz.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Chapter 3 Introduction to Event Handling and Windows Forms Applications.
Slide 1 Chapter 2 Visual Basic Interface. Slide 2 Chapter 2 Windows GUI  A GUI is a graphical user interface.  The interface is what appears on the.
Lecture Set 3 Introduction to Visual Basic Concepts Part A – User Interfaces and Windows Forms – The Toolbox.
Neal Stublen Practice Solution  Create a new solution  Add a WinForms project  Add a Class Library project  Reference the library.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Windows Services XML Web Services Certification SIG Tom Perkins.
WINDOWS SERVICES. Introduction You often need programs that run continuously in the background Examples: – servers –Print spooler You often need.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
Chapter 8: Writing Graphical User Interfaces
IE 411/511: Visual Programming for Industrial Applications
 Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow. Designing & Building Windows.
Virtual techdays INDIA │ Nov 2010 Developing Office Biz Application using WPF on Windows 7 Sarang Datye │ Sr. Consultant, Microsoft Sridhar Poduri.
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
Visual Basic 101.
A First Look At Microsoft Visual Basic Lesson 1. What is Microsoft Visual Basic? Microsoft Visual Basic is a software development tool, which means it.
Developing the Game User Interface (UI) Lesson 5.
The VPO Operator. [vpo_operator] 2 The VPO Operator Section Overview The role of the VPO operator Starting and stopping the Motif GUI The VPO Operator.
Lecture Set 1 Part C: Understanding Visual Studio and.NET – Applications, Solutions, Projects (no longer used – embedded in Lecture Set 2A)
G RAPHICAL U SER I NTERFACE C ONCEPTS : P ART 1 1 Outline Introduction Windows Forms Event-Handling Model - Basic Event Handling.
Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus.
Introduction to the Visual Studio.NET IDE (LAB 1 )
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 13 – Graphical User Interfaces Part 2 Outline.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 12 - Graphical User Interface Concepts: Part.
Object Oriented Software Development 9. Creating Graphical User Interfaces.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
1 Chapter Eleven Handling Events. 2 Objectives Learn about delegates How to create composed delegates How to handle events How to use the built-in EventHandler.
Introduction to Windows Programming
CHAPTER TWO INTRODUCTION TO VISUAL BASIC © Prepared By: Razif Razali 1.
Lection №5 Modern integrated development environment.
1 Chapter Nine Using GUI Objects and the Visual Studio IDE.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Slide 1 Using Menu Bar & Common Dialog Boxes. Slide 2 Setting Up the Main Items v First open the form on which you want the menu located v Then start.
Understand Windows Services Software Development Fundamentals LESSON 5.3.
Understanding Desktop Applications Lesson 5. Understanding Windows Forms Applications Windows Forms applications are smart client applications consisting.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Introducing Windows Applications Lesson 1. Objectives.
Dive Into® Visual Basic 2010 Express
Document/View Architecture
Chapter 2: The Visual Studio .NET Development Environment
Microsoft Visual Basic 2005 BASICS
Visual Basic Code & No.: CS 218
Using GUI Objects and the Visual Studio IDE
Understand Windows Forms Applications and Console-based Applications
Standard Controls.
Windows Desktop Applications
Social Media And Global Computing Introduction to Visual Studio
Understanding the Visual IDE
Creating a Windows Forms User Interface
Windows Service Applications
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Presentation transcript:

Understanding Desktop Applications Lesson 5

Objective Domain Matrix Skills/ConceptsMTA Exam Objectives Understanding Windows Forms Applications Understand Windows Forms applications (5.1) Understanding Console-Based Applications Understand console-based applications (5.2) Understanding Windows Services Understand Windows services (5.3)

Understanding Windows Forms Applications Windows Forms applications are smart client applications consisting of one or more forms that display a visual interface to the user. A Windows Form is a visual surface capable of displaying a variety of controls, including text boxes, buttons, and menus. A control is a distinct user interface element that accepts input from the user or displays output to the user.

Designing a Windows Form Visual Studio provides a drag-and-drop Windows Forms designer. Windows Forms includes a large collection of common controls. For specialized interfaces, you can create a custom-control.

Creating a Windows Form Create projects based on the Visual Studio’s Windows Forms Application template.

Visual Studio Toolbox The Visual Studio toolbox provides common controls.

Windows Forms User Interface You can drag and drop controls from the Toolbox and arrange them on the Windows Forms designer to create the user interface.

Windows Forms Event Model A form and its components respond to user actions such as keystrokes or mouse movement. These actions are called events. Much of the code that you write as a Windows Forms developer is directed toward capturing such events and responding. The Windows Forms event model uses.NET Framework delegates to bind events to their respective event handlers.

Handling Events Here, ValueChanged is the event of the DateTimePicker control that we want to capture. A new instance of the delegate of type EventHandler is created and the method dateTimePicker1_ValueChanged is passed to the event handler. The dateTimePicker1_ValueChanged is the method in which you will write the event-handling code.

Handling Events - Example The dateTimePicker1_ValueChanged method is invoked when the ValueChanged event is fired on the dateTimePicker1 control. The parameter of the object type specify the object that raised the event. The parameter of the EventArgs type provides information about the event.

Visual Inheritance Visual inheritance allows you to reuse existing functionality and layout for Windows Forms. When inheritance is applied to a Windows Form, it causes the inheritance of all the visual characteristics of a form, such as size, color, and any controls placed on the form. You can also visually manipulate any of the properties that are inherited from the base class.

Multiple Document Interface (MDI) Applications Multiple Document Interface (MDI) applications are applications in which multiple child windows reside under a single parent window. MDI applications allow multiple windows to share a single application menu and toolbar. With Single document interface (SDI) applications, each window contains its own menu and toolbar. SDI applications rely on the operating system to provide window management functionality. To create an MDI application, set the IsMdiContainer property to True. For the child windows, set the MdiParent property to refer to the parent form.

MDI Application Sample

Console-Based Applications Console-based applications do not have a graphical user interface and use a text-mode console window to interact with the user. Console applications are best suited for tasks that require minimal or no user interface.

Windows Service Applications A Windows service is an application that runs in the background and does not have any user interface. Ideal for creating long-running programs that run in the background and do not directly provide any user interaction. A Windows service can be started, paused, restarted, and stopped. A Windows service can also be set to start automatically when the computer is started. Services play an important role in enterprise application architecture. For example, you can have a service that listens for incoming orders and starts an order-processing workflow whenever an order is received.

Creating Windows Service Applications Use the Windows Service project template to create Windows Services.

Creating Windows Service Applications The Windows Services inherits from the ServiceBase class. Override the OnStart, OnStop, OnPause, OnContinue and OnShutdown method to customize service behavior.

Installing Windows Service Applications A Windows Service must be installed before use. The ServiceProcessInstaller class performs installation tasks that are common to all the Windows services in an application. –Setting the login account for the Windows service. The ServiceInstaller class, on the other hand, performs the installation tasks that are specific to a single Windows service. –setting the ServiceName and StartType. An executable file that has the code for the service installer classes can be installed by using the command line Installer tool (installutil.exe).

Managing Windows Service Applications Use the Windows Services tool to start, stop, pause and continue a Windows service.

Recap Windows Forms Applications –Designing a Windows Form –Windows Forms Event Model –Visual Inheritance –MDI Application vs. SDI Application Console-Based Applications –Command-line Arguments Windows Service Applications –Creating a Windows Service