McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.

Slides:



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

Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Chapter 1: An Introduction to Visual Basic 2012
Chapter 10 Database Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Interfacing with Computer Associate Degree in Education (ADE) Lecture 04 Sajid Riaz.
© 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,
Chapter 5 Menus, Common Dialog Boxes, Sub Procedures, and Function Procedures Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved.
Chapter 6 Multiform Projects Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
Multiple Document Interface (MDI) application
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Chapter 1 Getting Started With Dreamweaver. Explore the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Creating a Console Application with Visual Studio
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
CHAPTER 6 Loop Structures.
CHAPTER SIX.
A First Program Using C#
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
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.
Microsoft Visual Basic 2005: Reloaded Second Edition
Microsoft Visual Basic 2008 CHAPTER 8 Using Procedures and Exception Handling.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
5-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
 What are the different types of loops? ◦ Do….While  Performs statements within loop while a condition is true ◦ Do….Until  Performs statements within.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 5 Menus, Common Dialog Boxes, Sub Procedures, and Function Procedures.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 4 I Need a Tour Guide.
Chapter 5 Menus, Common Dialog Boxes, and Methods Programming in C#.NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
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.
Lecture Set 2 Part B – Configuring Visual Studio; Configuration Options and The Help System (scan quickly for future reference)
Lecture Set 1 Part C: Understanding Visual Studio and.NET – Applications, Solutions, Projects (no longer used – embedded in Lecture Set 2A)
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 7 Using Menus, Common Dialogs, Procedures, Functions, and Arrays.
Chapter 5 Menus, Common Dialog Boxes, Sub Procedures, and Function Procedures Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
Key Applications Module Lesson 21 — Access Essentials
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. word 2010 Chapter 3 Formatting Documents.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Multiform Projects.
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.
Chapter 1 Getting Started With Dreamweaver. Exploring the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
6-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
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.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Creating New Forms Projects can appear more professional when using different windows for different types of information. Select Add Windows Form from.
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.
 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.
Chapter 7 Multiple Forms, Modules, and Menus. Section 7.2 MODULES A module contains code—declarations and procedures—that are used by other files in a.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc.Slide 1.
Chapter 2: The Visual Studio .NET Development Environment
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
Using Procedures and Exception Handling
Chapter 6 Multiform Projects
CIS16 Application Development Programming with Visual Basic
Lecture Set 11 Creating and Using Classes
Chapter 13 Additional Topics in Visual Basic
Presentation transcript:

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1

Visual Studio Advanced Programming Using Visual Basic 2005 Chapter 1

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-3 Objectives  Distinguish the features of the Visual Studio IDE and the.NET Framework  Identify and understand the purpose of each of the files listed in the Solution Explorer  Create an MDI project with a parent form, child forms, a toolbar, status bar, context menus and ToolTips  Use the singleton design pattern to create a class that should be instantiated only once

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-4 Visual Basic 2005  Major update to the development environment and the VB language More powerful and easier to use Expanded IntelliSense, smart tags, wizards and Project Designer Resources stored in a Resources folder — can hold graphic and audio files, text strings, and foreign language conversions Form Designer uses new snap lines and spacing guides Partial classes, code snippets, Click Once deployment all simplify creating and deploying.NET applications

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-5 The.NET Framework  A platform for developing and running applications and XML Web services  Framework components Common language runtime Class libraries ASP.NET

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-6 Class Library  Stores all classes and interfaces of the.NET language  Stored in a library known as the.NET Framework class library  Namespaces – sections within the library that contain classes, structures, enumerations, delegates, interfaces See Table 1.1 in text

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-7 Alignment Guides for Windows Forms  Windows form designer includes snap lines used to align controls Blue snap lines appear when edges of controls are aligned Red snap lines appear when text baselines of controls are aligned  Visible grid does not appear by default Can choose to display the grid in the Options dialog box, which turns off the snap lines

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-8 The Solution Explorer  Click the Show All Files button to view the hidden files and folders  New My Project folder holds several files for project configuration, including AssemblyInfo.vb  The solution name does not display by default Select Tools/Options/Projects and Solutions and check Always show solution

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-9 Solution Explorer Files

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved Solution Explorer After Compiling  After compiling a project and clicking the Refresh button, the bin\Debug folder holds the files needed to run the program in the debugger

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved Resources Folder  The Resources folder holds the project resources, such as graphic and sound files and text strings

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved Form Designer Generated Code  Partial classes (types) allow a class to be split into two or more separate files  The VB form designer splits the form’s class into two parts, separating the designer- generated code from the developer-written code

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved The Project Designer  An expansion of the Project Properties dialog box  To open, double-click on the My Project folder or select Project/ProjectName Properties

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved Deploying Windows Applications  Target computer must have the.NET Framework or the.NET Framework Redistributable installed (free download)  Choose from several methods for deploying Windows applications XCopy deployment Windows Installer Technology Click-Once deployment Third-party installer products

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved The My Object  New feature in VB 2005  Provides easy access to Information about applications Resources The computer on which the application is executing The current user

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved Assembly Information  The Assembly Information dialog box with values supplied by default  Entries can be edited to chosen values

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved Menus, Toolbars, and Status Bars  New components for menus, context menus, toolbars and status bars MenuStrip, ContextMenuStrip,ToolStrip, and StatusStrip Old components can still be used New components have more capabilities  Includes designers which simplify creating menus, toolbars and status bars Smarter than the old ones Give each element a meaningful name Simplify setting properties for the controls

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved Creating Menus with MenuStrips  When added to a form, the component appears in the component tray and the words “Type Here” appear Drop down the list for a new menu item and make a selection from the list

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved Items Collection Editor  Use to add and remove menu items, reorder items and set properties

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved Creating Toolbars with ToolStrips  Typically hold shortcut buttons to menu items  Similar to MenuStrips

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved Creating Status Bars with StatusStrips  Generally appear at the bottom of a form  Supply information to the user  Share many of the same characteristics as MenuStrips

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved Displaying the Date and Time  Use the properties and methods of the DateTime structure to retrieve and format the current date and time  The Now property holds the system date and time in a numeric format that can be used for calculations  Methods are used to format the date and time format Examples Today.ToShortDateString Now.ToShortTimeString

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved MDI Applications  Main form (parent) and sub-forms (children).  Child forms must stay inside the boundaries of the parent form  If a parent form closes all the children “leave” too

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved Adding a Window Menu  Parent form should have a Window menu Lists the open child windows and allows the user to switch between and arrange windows

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved Singleton Design Pattern  Only allow a single instance of a form  OOP technique: Use singleton design pattern  To create a singleton pattern Define a property that returns an instance of the class Declare a shared private variable to hold an instance of the class  To instantiate the single instance Dim aChildOneForm As ChildOneForm = ChildOneForm.Instance() With aChildOneForm.MdiParent = Me.Show().Focus() End With

McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved Splash Screen Forms and Templates  The initial screen normally displays while a program is loading  Adds a professional touch  Should display for as long as it takes for the rest of the application to load  Code can be written to make the splash screen appear longer using threads Allow multiple processes to execute simultaneously  The Splash Screen template can be used for a splash screen