Lecture Set 3 Introduction to Visual Basic Concepts Part A – User Interfaces and Windows Forms – The Toolbox.

Slides:



Advertisements
Similar presentations
Designing a Graphical User Interface (GUI) 10 IST – Topic 6.
Advertisements

CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Creating an OOED Application
© 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,
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
The Microsoft View: Module 1: Getting Started. Copyright Course 2559B, Introduction to Visual Basic®.NET Programming with Microsoft®.NET. Lecture 1 Microsoft.
 2002 Prentice Hall. All rights reserved. Chapter 2 - Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Overview of the Visual Studio.NET.
Chapter 31 Visual Basic Controls A Form is a windows-style screen displayed by Visual Basic programs. In a form, a programmer can create objects in a form.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter One An Introduction to Visual Basic 2010.
Chapter 3 Introduction to Event Handling and Windows Forms Applications.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
Systems Analysis and Design in a Changing World, 6th Edition
Visual Basic Chapter 1 Mr. Wangler.
Word Processing ADE100- Computer Literacy Lecture 12.
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 FRONTPAGE. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features Features  Starting Front Page Starting Front Page  Components.
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
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 1B Introduction (Tutorial)
CHAPTER TWO Creating Simple Visual Basic.NET Windows Applications.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 2 Welcome Application Introducing the Visual Basic 2008 Express Edition IDE.
SWE205 Review Spring Why is software unusable? Users are no longer trained. Why? Feature creep Inherently hard: a problem of communication Designed.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 4 I Need a Tour Guide.
Lecture Set 1 Part C: Understanding Visual Studio and.NET – Applications, Solutions, Projects (no longer used – embedded in Lecture Set 2A)
 2009 Pearson Education, Inc. All rights reserved Introduction to the Visual Basic Express 2008 IDE.
 2009 Pearson Education, Inc. All rights reserved Dive Into ® Visual C# 2008 Express.
XP New Perspectives on Windows XP Tutorial 1 Exploring the Basics.
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.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
Introduction to Web Page Design. General Design Tips.
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.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview How to create a first ASP.NET application.
Chapter 2 – Introduction to the Visual Studio .NET IDE
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.
Visual Basic CDA College Limassol Campus Lecture:Pelekanou Olga Semester C Week - 1.
Microsoft Visual Basic 2010 CHAPTER TWO Program and Graphical User Interface Design.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
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.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
 2007 Pearson Education, Inc. All rights reserved Introduction to the Visual Basic Express 2005 IDE.
Dive Into® Visual Basic 2010 Express
Visual Basic.NET Windows Programming
IS 350 Course Introduction
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
Introduction to the Visual C# 2005 Express Edition IDE
Program and Graphical User Interface Design
Chapter 2 – Introduction to the Visual Studio .NET IDE
Chapter 1: Digital Communication Tools
Programming with Microsoft Visual Basic 2008 Fourth Edition
Chapter 4 Enhancing the Graphical User Interface
Presentation transcript:

Lecture Set 3 Introduction to Visual Basic Concepts Part A – User Interfaces and Windows Forms – The Toolbox

Slide 2 Objectives Compare command-line interfaces and forms-based interfaces – basics of forms-based interfaces Design user interface for a Windows application Create Windows Application project using the Visual Studio IDE Use controls to create the user interface for a Windows Application project Create code for a Windows Application project 7/30/2013 9:31 PM

Slide 3 Comparing Command-line and Form-based Interfaces User interfaces can be roughly categorized into two types Command-line interfaces use textual input and output The end user interacts with an application by typing commands You just did this Most Windows user interfaces are form-based visual interfaces The end user interacts with an application through its visual elements 7/30/2013 9:31 PM

Slide 4 Comparing a Command-line Interface and a Form-based Interface 7/30/2013 9:31 PM

Slide 5 Principles of a User Interface Control – The end user should control the application User-friendliness – The interface should help the end user accomplish tasks Intuitiveness – The interface should follow a direct style that proceeds logically (left to right; up and down?) Consistency – The user interface should have consistent fonts and shapes Feedback – The interface should provide clear and immediate feedback 7/30/2013 9:31 PM

Slide 6 Principles of a User Interface (continued) Graphics – Avoid use of unnecessary graphics Color – Pleasant but not overdone Input – Minimize transitions between the keyboard and mouse where possible User protection – prevent bad input data Screen resolution – The user interface should adapt to different screen resolutions Users may be visually impaired, requiring larger fonts 7/30/2013 9:31 PM

Slide 7 Designing a User Interface A user interface should be designed before it is implemented Design user interface using a tool such as Visio Pencil and paper works fine too Name your controls so that you know that you have at all times Be consistent – see suggestions in text Forms design and the underlying code will be handled separately (to be explained) But interface design can be very helpful in structuring and implementing your code 7/30/2013 9:31 PM

Slide 8 Designing a User Interface 8

Slide 9 Principles of Control Design Alignment – Align control instances vertically or horizontally Balance – Distribute control instances evenly about the form Color – Use soft colors with adequate contrast between foreground and background colors Users may be colorblind Function grouping – Group control instances based on their function Consistent sizing – Control instances should have the same size 7/30/2013 9:31 PM

Slide 10 A Poor User Interface 7/30/2013 9:31 PM

Slide 11 An Improved User Interface 7/30/2013 9:31 PM

Slide 12 Other “Interesting” Forms Pages Windows versus web forms pages Amazon Southwest Airlines Your instructor’s web page Your instructor’s web page Right click on link  Open Hyperlink 7/30/2013 9:31 PM

Slide 13 Creating a Windows Application Project 1 As indicated earlier, there is a lot to learn Forms design – sort of fun Tools – such as Visio Software design Tools – UML, Data Tables, Behavior modelling How to use the Visual Studio IDE Tools – tons of on-line and text references Get the right one for your level VB.NET Tools – tons of on-line and text references Here we go … 7/30/2013 9:31 PM

Slide 14 Anatomy of a Windows Application Project See next slide  The Windows Forms Designer is used to create a form’s visual interface Controls appearing in the Toolbox are used to create the visual interface of a form The Properties window provides a visual way to set properties for the form and control instances created on the form The region inside a form's border is called the client area 7/30/2013 9:31 PM

Slide 15 Viewing a Form 7/30/ :40PM

Slide 16 Form Methods and Events Methods The Close method closes the form and unloads it from memory The Hide method makes a form invisible Events The Load event fires when a form is loaded into memory for the first time You will find these in a typical Windows Forms window 7/30/ :34

Slide 17 The Toolbox and Windows Forms Designer The Toolbox and Windows Forms Designer are used together to create an application’s visual interface The Toolbox contains controls Controls are part of the FCL class hierarchy Controls are dragged onto a form  Code-behind is generated – the control is represented as an instance of the class – as an object or control instances View the Windows Forms Designer by Selecting the form in the Solution Explorer and clicking View Designer It is instructive to look at this code – it is the other part of the Partial Class that you are coding. 7/30/2013 9:31 PM

Slide 18 Toolbox Tabs The Toolbox contains the controls that can be drawn on any form, and is divided into tabs The All Windows Forms tab lists all controls The Common Controls tab lists the most frequently used controls The Containers tab lists controls used to group other controls The Menus & Toolbars tab contains controls are used to create a menu system and toolbars You should understand what these tools are Hint – they are OBJECTS – instances of a class We will see more about this in Slide Set 3B When you design your first form, pin the Toolbox to your design window. Makes things easier. 7/30/2013 9:31 PM

Slide 19 Toolbox Tabs (continued) The Data tab contains controls used to work with a database The Components tab contains controls used to work with Windows services (Windows components) The Printing tab contains controls used to work with a printer The Dialogs tab contains standard dialog boxes The Crystal Reports tab contains controls used with the Crystal Reports reporting software 7/30/2013 9:31 PM

Slide 20 The Organization of Controls in the Toolbox 7/30/2013 9:31 PM

Slide 21 Characteristics of a Form 1 What you see when you open a Form – Code Mode Examine each of the icons to the right of the Debug pull down control 7/30/ :15 PM

Slide 22 Characteristics of a Form 2 Specifically, explore The Properties Window The Object Browser The Error List The Toolbox The Solution Explorer Window 7/30/ :45 PM