1 Visual Basic.NET Application Overview. 2 Objectives Discuss what a typical Visual Basic.NET application looks like Configure the Visual Studio.NET Integrated.

Slides:



Advertisements
Similar presentations
1 After completing this lesson, you will be able to: Create a new presentation using a design template. Enter text in the Slide pane. Create a new slide.
Advertisements

Microsoft Office 2010 Office 2010 and Windows 7: Essential Concepts and Skills Mark Worden Instructor Use your spacebar or down arrow key to advance slides.
Microsoft Word 2010 Lesson 1: Introduction to Word.
Microsoft Office 2007 PowerPoint Web Feature Creating Web Pages Using PowerPoint.
Microsoft Office 2010 Access Chapter 1 Creating and Using a Database.
© 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,
FIRST COURSE Getting Started with Microsoft Office 2007.
 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.
Microsoft Windows Vista Chapter 6 Customizing Your Computer Using the Control Panel.
Copyright 2007, Paradigm Publishing Inc. POWERPOINT 2007 CHAPTER 1 BACKNEXTEND 1-1 LINKS TO OBJECTIVES Create Presentation Open, Save, Run, Print, Close,Delete.
FIRST COURSE Getting Started with Microsoft Office 2007.
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.
Access Tutorial 10 Automating Tasks with Macros
Microsoft Office 2010 Office 2010 and Windows 7: Essential Concepts and Skills.
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.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 22 Macros.
Office 2013 and Windows 8: Essential Concepts and Skills
Teach Yourself Windows 98 Module 2: Working with Files, Folders, and the Desktop.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 4 1 Microsoft Office FrontPage 2003 Tutorial 4 – Using Shared Borders and Themes.
CHAPTER 9 Introducing Microsoft Office Learning Objectives Start Office programs and explore common elements Use the Ribbon Work with files Use.
IE 411/511: Visual Programming for Industrial Applications
Microsoft Office 2007 PowerPoint Web Feature Creating Web Pages Using PowerPoint.
CHAPTER 9 Introducing Microsoft Office Learning Objectives Start Office programs and explore common elements Use the Ribbon Work with files Use.
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.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
 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.
© Paradigm Publishing Inc. MICROSOFT WINDOWS XP MAINTAINING FILES AND CUSTOMIZING WINDOWS Section 2.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Microsoft Access 2010 Chapter 10 Administering a Database System.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
Chapter 2 – Introduction to the Visual Studio .NET IDE
FIRST COURSE Getting Started with Microsoft Office 2007 COM111 Introduction to Computer Applications.
Using Advanced Options Lesson 14 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft Word 2013.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 2.1 Test-Driving the Welcome Application 2.2.
Fall 2003Sylnovie Merchant, Ph.D. ACCESS Tutorial Note: The purpose of this tutorial is to provide an introduction to some of the functions of ACCESS in.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
Microsoft Office 2010 is the newest version of Microsoft Office, offering features that provide users with better functionality and easier ways to work.
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 Office 2010 Exploring the Basics of Microsoft Windows 7.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
Create ReportsCreate Reports Lesson 6 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Access Microsoft Access 2013.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
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.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
COMPREHENSIVE Getting Started with Microsoft Office 2007.
Dive Into® Visual Basic 2010 Express
Chapter 1: An Introduction to Visual Basic 2015
Chapter 2 – Introduction to the Visual Studio .NET IDE
Program and Graphical User Interface Design
Introduction to the Visual C# 2005 Express Edition IDE
Office 2010 and Windows 7: Essential Concepts and Skills
Chapter 2 – Introduction to the Visual Studio .NET IDE
Windows xp PART 1 DR.WAFAA SHRIEF.
Presentation transcript:

1 Visual Basic.NET Application Overview

2 Objectives Discuss what a typical Visual Basic.NET application looks like Configure the Visual Studio.NET Integrated Development Environment for developing applications in Visual Basic.NET Create and open a Visual Studio.NET solution and project Create a blank solution and add a new project

3 Previewing the VillageHousing Application VillageHousing application –Stored in the VB.NET\Student\Tut00\ VillageHousing folder –Consists of one Windows Form with a Microsoft Access database as the back end

4 To View the VillageHousing Application 1.Click the Start button on the Windows taskbar, click Run on the Start menu to open the Run dialog box, and then click Browse to open the Browse dialog box 2.Locate and then open the VB.NET\Student\Tut00\VillageHousing\bin folder. Click VillageHousing.exe in the list of filenames, and then click Open. Click OK 3.Note some of the user-interface features of this application. On the left side, buttons, labels, and text boxes are all neatly aligned. Click the First Name text box, and then press Tab several times; the focus shifts in a spatially logical pattern (left to right, top to bottom) from control to control throughout the form

5 Main Screen of the VillageHousing Application

6 To View the VillageHousing Application (Continued) 4.Try to click the BadgeID text box. You cannot move the focus to this text box because BadgeID has been disabled in the form 5.The Help button at the upper left of the form explains how to use the application. Click Help to open a Help window outlining basic information on the application 6.Click OK to close the VillageHousing Help window

7 Help Dialog Box for the VillageHousing Application

8 To Experiment with the VillageHousing Project 1.Load the data by clicking the Load button 2.Note that the navigation buttons are now enabled. Scroll through the records of villagers already registered in the database. Click the arrow in the Find by Last Name combo box, and click Able. Click Find by BadgeID, type 10, and then click OK. Ivan Turkovitch’s record appears. Click Find by BadgeID again, type 70, and then click OK. Click OK, and note that the first record is displayed

9 Data Loaded in the VillageHousing Application

10 To Experiment with the VillageHousing Project (Continued) 3.Make a room reservation by typing the indicated RoomID for the following villagers BadgeID=14, Gerhard Werner, RoomID=10 BadgeID=15, Andrea Schmitz, RoomID=98 4.Change the RoomID for David Simpson, BadgeID=1, from 50 to 92 5.Add the following villagers. Click Add, and type into the text boxes, using Tab to move from text box to text box Sally Petersen, 2/10/1969, USA, Athlete, Equestrian, F, RoomID=110 Sven Bjoernsen, 3/16/1980, SWE, Athlete, Track, M, no room

11 To Experiment with the VillageHousing Project (Continued) 6.Locate the villager with BadgeID 15, and click Delete. Then delete Miguel Jacinto 7.Click Update to record all of your changes to villager records stored in the database, and then click Load again 8.Click the Close button to close the VillageHousing application

12 Configuring Visual Studio.NET Visual Studio.NET –Supports application development in roughly 20 programming languages –Select settings in the Visual Studio.NET Integrated Development Environment (IDE) appropriate for a Visual Basic.NET developer

13 To Start Visual Studio.NET and Customize it for Visual Basic.NET Development 1.Click Start on the Windows taskbar, point to Programs (All Programs in Windows XP), point to Microsoft Visual Studio.NET, and then click Microsoft Visual Studio.NET 2.In the left pane of the Start Page, click My Profile

14 My Profile, From the Visual Basic.NET Start Page

15 To Start Visual Studio.NET and Customize it for Visual Basic.NET Development (Continued) 3.In the Profile combo box, look at all the options in the drop-down list, and then click Visual Basic Developer 4.In the Keyboard Scheme list box, click Visual Basic 6, if necessary 5.In the Window Layout list box, click Visual Studio Default, if necessary 6.In the Help Filter list box, click Visual Basic, if necessary 7.In the At Startup list box, you can make whatever choice is most comfortable for you. In this situation, click the default, Show Start Page

16 Creating and Opening a Visual Basic.NET Solution and Project Solution –A container for one or more projects Project –Consists of a computer program and related components, written in one of the programming languages supported by the Visual Studio.NET platform Files that constitute a project –Stored in the solution container Solutions that you create –Consist of a single Visual Basic.NET project Solution and project refer to the same Visual Basic.NET application

17 To create a New Project and Solution 1.Click Get Started on the Start Page, and then click New Project 2.In the New Project dialog box, click Visual Basic Projects under Project Types, if necessary 3.Under Templates, click Windows Application, if necessary. When creating a new project, you need to provide a name and location for storing the project and related files

18 New Project Dialog Box

19 To Create a New Project and Solution (Continued) 4.Double-click the Name text box to select the default name, and then type Hello1 5.In the Location textbox, type VB.NET\Student\Tut00. Note that Visual Studio informs you that the project will be created at VB.NET\Student\Tut00\Hello1 6.Click OK to close the dialog box and finish creating the new project and solution 7.Next, run the newly created program. To do this, click Debug | Start from the main menu. Alternatively, click the Start button. Visual Basic.NET saves the source file, compiles and saves the executable file and then initiates execution of the program

20 Completed New Project Dialog Box

21 Solution Explorer Window

22 Running the Hello1 Project

23 To Create a New Project and Solution (Continued) 8.Click the Close button to end the running application. Note that Form1 no longer appears on the taskbar. Now close the solution 9.Return to the Visual Studio.NET IDE if necessary, then click File | Close Solution. Note that the Solution Explorer window is empty

24 Empty Solution Explorer Window

25 To Open the Solution Using the File Menu 1.From the Start Page, click File on the menu bar, and then click Open Solution. The Open Solution dialog box opens. In the Open Solution dialog box, the folders that appear depend on your previous use of the Open Solution dialog box. If necessary, navigate to the VB.NET\Student\Tut00 folder 2.Double-click the Hello1 folder, and then double-click the solution file Hello1.sln 3.Close the solution by clicking File | Close Solution. Again, note that Solution Explorer is empty

26 Open Solution Dialog Box

27 To Open an Existing Project 1.From the Start Page, click the Open Project button on the lower center of the page. The Open Project dialog box opens. In the Open Project dialog box, just as in the Open Solution dialog box, the folders that appear depend on your previous use of the Open Project dialog box. If necessary, navigate to the VB.NET\Student\Tut00 folder 2.Double-click the Hello1 folder, and then double-click the project file Hello1.vbproj. If Solution Explorer is not visible, make it visible by clicking its tab or by clicking View | Solution Explorer. See that both the solution and the project are listed 3.Click File | Open | Project

28 Open Project Dialog Box

29 To Open an Existing Project (Continued) 4.At this time, you are not actually opening another project or solution, nor adding a project to the current solution. Click Cancel to close the Open Project dialog box 5.Exit Visual Studio.NET, and then open Visual Studio.NET again. On the Start Page, the Hello1 project is listed at the top of the recent projects list

30 Open Project Dialog Box with Project Already Open

31 Creating a Blank Solution and Adding a New Project To create a blank solution and new project: 1.From the Start Page, click File | New | Blank Solution. Visual Studio Solutions is selected by default for the Project Types, and Blank Solution is the only available template. Note that this solution will be created in the VB.NET\Student\Tut00\Solution1 folder 2.Click OK 3.Click File | Add Project | New Project. Notice the default project name, WindowsApplication1, and that this new project will be stored in the VB.NET\Student\Tut00\Solution1\WindowsApplication1 folder 4.Click OK to accept the default filename and storage location 5.Click the Close button to exit Visual Studio.NET

32 Blank Solution in the New Project Dialog Box

33 Blank Solution in Solution Explorer Window

34 WindowsApplication1 Inside Solution1

35 To View the Solutions in Windows Explorer 1.Open Windows Explorer and locate the Tut00 folder on your computer. Click View | Details. In the left pane of Windows Explorer, click the plus box next to the Tut00 folder, then click the plus boxes next to the Hello1 folder and the Solution1 folder. Click the Hello1 folder, and view its contents 2.In the left pane of Windows Explorer, click the Solution1 folder to display its contents in the right pane

36 Hello1 Folder Displayed in Windows Explorer

37 Solution1 Folder Displayed in Windows Explorer

38 Creating a Blank Solution and Adding a New Project Note the following when viewing the contents of the Solution1 folder and comparing them to that of the Hello1 folder: –Solution1 folder contains the solution files: Solution1.sln and Solution1.suo However, unlike the Hello1 folder, the Solution1 folder contains another subfolder, WindowsApplication1, which in turn contains all the project files –VB.NET\Student\Tut00\Solution1\WindowsApplication1\bin is empty

39 Summary Visual Basic.NET applications –Can provide solutions for many business information system requirements. Such applications can include a graphical user interface (GUI) The Visual Studio.NET Integrated Development Environment (IDE) –Can be tailored to the needs of a Visual Basic.NET developer through the My Profile page Visual Studio.NET solution –Container for one or more Visual Studio.NET projects

40 Summary (Continued) Solution –May contain many projects –Each project may be created with a different programming language –Can be created by itself (a blank solution) Solution and project –Can be created at the same time –Can be treated as a unit when the solution contains only one project