Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)

Slides:



Advertisements
Similar presentations
Chapter 1: An Introduction to Visual Basic 2012
Advertisements

© by Pearson Education, Inc. All Rights Reserved.
© by Pearson Education, Inc. All Rights Reserved. continued …
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Chapter 1: An Introduction to Visual Basic.NET Programming with Microsoft Visual Basic.NET, Second Edition.
 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.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter One An Introduction to Visual Basic 2010.
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
Microsoft Visual Basic 2005: Reloaded Second Edition
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
IE 411/511: Visual Programming for Industrial Applications
Chapter 1: An Introduction to Visual Basic 2005 Programming with Microsoft Visual Basic 2005, Third Edition.
Teacher: Ms. Olifer MICROSOFT VISUAL STUDIO 2010: PROPERTIES OF WINDOWS FORM OBJECT.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 4 I Need a Tour Guide.
Chapter 3: Using GUI Objects and the Visual Studio IDE.
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Microsoft Visual Basic 2005 CHAPTER 7 Creating Web Applications.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Program Design and Coding
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Chapter Two Designing Applications Programming with Microsoft Visual Basic th Edition.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
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.
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.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) 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.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
 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.
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.
 You won’t write a single line of program code.  Instead, you’ll use visual programming techniques.  Visual Studio processes your actions (such as mouse.
Programming with Microsoft Visual Basic 2012 Chapter 1: An Introduction to Visual Basic 2012.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter One An Introduction to Visual Basic 2008.
Chapter 4: Do-It-Yourself Designing (Designing Interfaces)
Dive Into® Visual Basic 2010 Express
Chapter 1: An Introduction to Visual Basic .NET
Excel Tutorial 8 Developing an Excel Application
Chapter 1: An Introduction to Visual Basic 2012
Microsoft Visual Basic 2005 BASICS
Chapter 1: An Introduction to Visual Basic 2015
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
Program and Graphical User Interface Design
3.01 Apply Controls Associated With Visual Studio Form
Chapter 1: An Introduction to Visual Basic 2015
Introduction to the Visual C# 2005 Express Edition IDE
Program and Graphical User Interface Design
Access Tutorial 7 Creating Custom Reports
Chapter 2 – Introduction to the Visual Studio .NET IDE
Hands-on Introduction to Visual Basic .NET
CIS16 Application Development Programming with Visual Basic
Programming with Microsoft Visual Basic 2008 Fourth Edition
Welcome To Microsoft Word 2016
Presentation transcript:

Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)

Chapter Objectives After studying Chapter 3, you should be able to: Create a Windows application in Visual Basic 2012 Use the Label and PictureBox tools to add controls to a form Set the properties of an object Save a solution Size, align, and center objects using the FORMAT menu Lock the controls on a form Start and end an application Close and open an existing solution Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Ok, the Algorithm is Correct. What’s Next? User Interface What the user sees and interacts with Integrated Development Environment (IDE) Contains all the tools and features needed to create the interface The combination of the user interface and the program’s code is referred to as an application. Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Ok, the Algorithm is Correct. What’s Next? (Cont.) Figure 3-1 Microsoft Visual Studio Professional 2012 startup screen Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Ok, the Algorithm is Correct. What’s Next? (Cont.) Figure 3-2 Options dialog box Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Creating a Visual Basic Windows Application Figure 3-3 Completed New Project dialog box in Visual Studio Professional 2012 Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Creating a Visual Basic Windows Application (Cont.) Figure 3-4 Solution and Visual Basic project Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Creating a Visual Basic Windows Application (Cont.) So Many Windows! Close windows you don’t want to see Use auto-hide to maximize design space Figure 3-5 Current status of the windows in the IDE Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Creating the User Interface Windows Form Designer window Create the GUI here Windows Form Object (Form) Foundation for the user interface Figure 3-6 Windows Form Designer window Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Creating the User Interface (Cont.) Controls Objects added to a form Toolbox window Contains tools use to create the interface Picture box Displays an image on a form Label controls Display text that user is not allowed to edit while application is running Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Creating the User Interface (Cont.) Figure 3-8 Label tool being dragged to the form Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Creating the User Interface (Cont.) Figure 3-10 A blue snap line appears when the borders are aligned Figure 3-11 A pink snap line appears when the text is aligned Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Save, Save, Save Good practice To save a solution Save current solution every 10 or 15 minutes To save a solution Click on File on the menu bar, then click Save All Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Whose Property Is It? Properties Determine object’s appearance and behavior Name and current value of each property Appear in the Properties window when the object is selected Properties window Object box contains the name of the selected object Properties list Two columns: Property names and settings box Settings box displays the current value of the property Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Whose Property Is It? (Cont.) Font General shape of text characters Measured in points Figure 3-13 Partial listing of the form’s properties Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Using the FORMAT Menu Format menu Provides several options for manipulating controls in the interface Useful options include Align and Make Same Size Reference control Is the first control selected Figure 3-17 Both picture boxes selected on the form Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Lock Them Down Lock Controls Prevents them from being moved inadvertently as you work in the IDE Figure 3-19 Controls locked on the form Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Ok, Let’s See the Interface in Action! Figure 3-20 Result of starting the Merlin the Cat application Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Closing the Current Solution To close a solution Use the Close Solution option on the File menu When you close a solution All projects and files contained in the solution are also closed Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Opening an Existing Solution To open an existing solution Use Open Project the File menu If a solution is already open in the IDE It is closed before another solution is opened Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Exiting Visual Studio To exit Visual Studio Use either the Close button on its title bar or The Exit option on the File menu Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Summary Creating the user interface Fourth step in the problem-solving process Windows applications in Visual Basic Composed of solutions, projects, and files Label controls Display text that user is not allowed to edit while an application is running Picture boxes Used to display images on a form Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Summary (Cont.) Good practice to save solution every 10-15 minutes Form’s StartPosition property Specifies the position of the form when it first appears on the screen Font property Determines the type, style, and size of font used to display text on the form Picture box control’s Image property Specifies name of file containing the image to display Good practice to lock the controls in place on form Clearly Visual Basic: Programming with Microsoft Visual Basic 2012