Introduction to Windows Programming

Slides:



Advertisements
Similar presentations
What Was I Thinking??. Key Terms 1. Control 1. Control 2. Design Mode 2. Design Mode 3. Event 3. Event 4. Form 4. Form 5. Interface 5. Interface 6. Properties.
Advertisements

An Introduction to Visual Basic Terms & Concepts.
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
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.
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.
Compunet Corporation Programming with Visual Basic.NET GUI Week # 11 Tariq Ibn Aziz.
Copyright © 2012 Pearson Education, Inc. Chapter 2 Introduction to Visual C#
C# Programming: From Problem Analysis to Program Design1 Introduction to Windows Programming C# Programming: From Problem Analysis to Program Design 3.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
C# Programming: From Problem Analysis to Program Design1 Introduction to Windows Programming C# Programming: From Problem Analysis to Program Design 3.
Graphical User Interfaces A Quick Outlook. Interface Many methods to create and “interface” with the user 2 most common interface methods: – Console –
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Getting Started Example ICS2O curriculum
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
IE 411/511: Visual Programming for Industrial Applications
Chapter 3: Using GUI Objects and the Visual Studio IDE.
1 Introduction to C# Programming Console applications No visual components Only text output Two types MS-DOS prompt - Used in Windows 95/98/ME Command.
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.
COS240 O-O Languages AUBG, COS dept Lecture 33 Title: C# vs. Java (GUI Programming) Reference: COS240 Syllabus.
Introduction In The Name Of Allah, The Beneficent, The Merciful.
Object Oriented Software Development 9. Creating Graphical User Interfaces.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
BIL528 – Bilgisayar Programlama II Introduction 1.
Lecture 6: Introduction to Graphical User Interfaces (GUIs)
CC111 Lec7 : Visual Basic 1 Visual Basic(1) Lecture 7.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Introduction to Visual Studio & GUI Programming Prepared by: Ahmad Ramin Rahimee Assistant Professor ICTI.
Chapter 2 – Introduction to the Visual Studio .NET IDE
1 Introduction to C# Programming Console applications No visual components Only text output Two types MS-DOS prompt - Used in Windows 95/98/ME Command.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
MS Visual Basic 6 Walter Milner. VB 6 0 Introduction –background to VB, A hello World program 1 Core language 1 –Projects, data types, variables, forms,
Lecture 1 Getting Started with Programming using Visual Studio.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4: Events Programming with Alice and Java First Edition by John Lewis.
Software 3 See Edmodo for images Group name: topcat Group code: i4qf9a 11/03/11.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
Simple Clicker App WPF App using C#. App Requirement Need a ‘counter’ display, which starts at 0 Need a ‘clicker’ button ! Pressing the clicker every.
CISC 110 Day 6 Introduction to Events. Outline Event-Driven Programming Event Classes Hierarchy –Event Class –Mouse Events –Keyboard Events Registering.
Understanding Desktop Applications Lesson 5. Understanding Windows Forms Applications Windows Forms applications are smart client applications consisting.
User Interface Programming in C#: Basics and Events Chris North CS 3724: HCI.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 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.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Dive Into® Visual Basic 2010 Express
Introduction to Windows Programming
C# Programming: From Problem Analysis to Program Design
Introduction to Computer CC111
Chapter Topics 15.1 Graphical User Interfaces
C# & Windows GUI Applications
Chapter 2 – Introduction to the Visual Studio .NET IDE
Visual programming Chapter 1: Introduction
Reference: COS240 Syllabus
An Introduction to Visual Basic
Event Driven Programming
Event Driven Programming
C# Programming: From Problem Analysis to Program Design
Social Media And Global Computing Introduction to Visual Studio
Understanding the Visual IDE
Simple Windows Applications
Chapter 15: GUI Applications & Event-Driven Programming
Tonga Institute of Higher Education
Event loops.
Presentation transcript:

Introduction to Windows Programming

Contrasting Windows and Console Applications Each line in Main( ) executed sequentially – then the program halts Windows applications Once launched, sits and waits for an event Sits in a process loop Event: notification from operating system that an action, such as the user clicking the mouse or pressing a key, has occurred Write event-handler methods for Windows apps

Graphical User Interface Windows applications also look different from console applications Interface: front end of a program Visual image you see when you run a program Graphical user interface (GUI) Graphical user interface (GUI) includes: Menus Text in many different colors and sizes Other controls (pictures, buttons, etc.)

using System.Windows.Forms; namespace WindowsApp { public class Form1 : Form public Form1( ) Text = "Simple Windows Application"; } static void Main( ) Form1 winForm = new Form1( ); Application.Run(winForm); Base class Constructor Starts process loop

Output generated from Windows application Graphical user interface (GUI) Windows-based form

The Concept For Windows programming, Visual Studio presents you with two development Windows: 1. Graphical Design Window – for the user interface You select, drag and drop visual artifacts such textboxes, buttons, etc. from the Toolbox pane onto the Designer Canvas. Visual Studio automatically generates the code for these artifacts. Program Code Window – for the program which reacts to a user interacting with the artifacts in the Design Window, e.g. a user clicking a button.