DT265-2 Object Oriented Software Development 2 Lecture 3 : Windows Programming Lecturer Pat Browne

Slides:



Advertisements
Similar presentations
Information System Design Lab 5&6. User Interface Design.
Advertisements

Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
CHAPTER TWO Creating Simple Visual Basic.NET Windows Applications.
© 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,
Using Visual Basic 6.0 to Create Web-Based Database Applications
Advanced Object-Oriented Programming Features
1 Pertemuan 02 Visual Basic Environment and Control Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
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.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Creating a Console Application with Visual Studio
Getting Started Example ICS2O curriculum
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
A First Program Using C#
Microsoft Visual Basic 2005: Reloaded Second Edition
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
Microsoft Visual Basic 2008 CHAPTER 8 Using Procedures and Exception Handling.
Using Visual Basic 6.0 to Create Web-Based Database Applications
An Introduction to Visual Basic
Visual Programming Fall 2012 – FUUAST Topic: Development environment.
CSCI 3328 Object Oriented Programming in C# Chapter 2: Introduction to Visual C# Programming 1 Xiang Lian The University of Texas Rio Grande Valley Edinburg,
CHAPTER TWO Creating Simple Visual Basic.NET Windows Applications.
Chapter 3: Using GUI Objects and the Visual Studio IDE.
Integrated Development Environment (IDE)
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 13 Introduction to Classes.
CHAPTER TWO Creating Simple Visual Basic.NET Windows Applications.
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.
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,
C# Programming: From Problem Analysis to Program Design1 10 Advanced Object-Oriented Programming Features C# Programming: From Problem Analysis to Program.
1.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 5.1 Test-Driving the Inventory Application.
Object-Oriented Application Development Using VB.NET 1 Chapter 10 VB.NET GUI Components Overview.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4: Events Programming with Alice and Java First Edition by John Lewis.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 3 Building an Application in the Visual Basic.NET Environment.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
COMPUTER III. Fundamental Concepts of Programming Control Structures Sequence Selection Iteration Flowchart Construction Introduction to Visual Basic.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Visual Basic/ Visual Studio Brandon Large. Connecting to prior knowledge In your notes write down what the two main parts of the computer are. The “software”
Dive Into® Visual Basic 2010 Express
Visual Basic Fundamental Concepts
Chapter 2: The Visual Studio .NET Development Environment
Visual Basic Code & No.: CS 218
CSCI 3328 Object Oriented Programming in C# Chapter 2: Introduction to Visual C# Programming UTPA – Fall 2012 This set of slides is revised from lecture.
3.01 Apply Controls Associated With Visual Studio Form
1. Introduction to Visual Basic
Introduction to VB6 Week 1 3/2/2004 PPCC - Introduction to VB6
3.01 Apply Controls Associated With Visual Studio Form
Visual Basic..
Social Media And Global Computing Introduction to Visual Studio
Understanding the Visual IDE
The University of Texas – Pan American
CIS16 Application Development Programming with Visual Basic
Presentation transcript:

DT265-2 Object Oriented Software Development 2 Lecture 3 : Windows Programming Lecturer Pat Browne

Windows Dialogs

Components From Windows Forms Programming with C# by Erik Brown

Menu Class From Windows Forms Programming with C# by Erik Brown

Status Bar Class From Windows Forms Programming with C# by Erik Brown

Windows Dialogs From Windows Forms Programming with C# by Erik Brown

Using C# in easy steps 1.Getting Started 2.Controls explained 3.C# language essentials 4.Object essentials 5.Visual studio tools 6.C# techniques 7.Creating database programs 8.Running C# on the internet

C# in easy steps : 1 Getting Started Introduction C# and other languages Installing C# Making Sense of the IDE Your First Application First look at Toolbox First Look at Property Editor Getting to know C# forms Placing a button First look at events Your First line of code Setting properties in code A C# adding machine Dealing with errors Help First look at solution Explorer Saving your project Reopen Application

C# in easy steps : 2 Controls Explained Controls and Methods Using buttons and labels Using TextBoxes Using Picture Boxes Using CheckBoxes Using RadioButtons Using ListBoxes Using ComboBoxes The OpenFileDialog Control Using the timer Using the TabControl Using the SplitterControl Using Toolbar and RichTextBox (paste data from Word Document) Using MonthCalendar Control Setting tab order Some other controls Using Anchor and Dock properties

C# in easy steps : 3 C# Language Essentials Introduction Start at the beginning The parts of a C# file Introduction to data types Doing sums Curly brackets and semicolons Functions and parameters Giving variables a value Variables and scope Using if.. else.. Using do and while Using for loops Using Switch Arrays: dealing with a set of values. Using structs Using enums for a range of values Understanding reference types Working with parameters More about casting

C# in easy steps : 4 Object Essentials Object essentials A first object Classes and objects Constructors and destructors Using Add Field and Add Property A list of books Working with collections Inheritance Encapsulation and interface Overloading and overriding Static members Protected and internal members Understanding Namespaces The using directive Object lifetime The using statement

C# in easy steps : 5 Visual Studio Tools Creating a Menu, customizing & popup Making a menu work Working with the code editor Using Clipboard Ring Using Find Introducing the debugger Using Breakpoints The locals and watch windows Tracking down errors Customizing the Toolbox Using the Add-in Manager Explaining the Reference Manager Setting Visual C# options Setting project properties Creating a standalone applications Where Help comes from

GUI events

C# Windows application

Mouse Events The mouse is a primary interface for doing graphics in Visual C# Express. A program needs to recognize mouse events in controls. Many controls recognize mouse events.

Mouse Events private void panel1_MouseDown(object sender, MouseEventArgs e) { switch (e.Button) { case MouseButtons.Left: label1.Text = "Left"; break; case MouseButtons.Middle: label1.Text = "Middle"; break; case MouseButtons.Right: label1.Text = "Right"; break; } label2.Text = Convert.ToString(e.X) + "," + Convert.ToString(e.Y); }

Mouse Events

Write Windows version of Location Quotient program Make Windows version of LQ program Invoke from menu, button or any other way. Read file. Perform LQ computation. Print results in list box.

SharpMap-0.9-Trunk Download and install Sharpmap from SharpMap-0.9-AnyCPU-Trunk Place with your other VisualStuidio projects. Download and run SharpmapDemo from Download

Generating Irish Grid letter The Irish National Grid is a coordinate reference system for Ireland. It is measured in metres with a range (0,0) to (500,000,500,000). For ease of reference a set of labelled grid squares are used. These are A to Z with no I. The code below accepts an ING coordinate and returns the grid square that contains the coordinate.

Generating Irish Grid letter See See code in notes section Tasks – Get input data from a CSV file – Write results to a CSV file – Prompt used for input/output files – Allow user to enter number specifying the number of digits in the output (0-6)