Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © 1992-2010 by Pearson Education,

Slides:



Advertisements
Similar presentations
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Advertisements

© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 7Automating Repetitive Tasks.
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.
© by Pearson Education, Inc. All Rights Reserved. continued …
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
 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 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.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Beginning Programming with the Visual Studio.NET Environment.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
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 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
 Computer use is increasing in almost every field  Computing costs have been decreasing dramatically due to rapid developments in hardware, software.
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
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.
Chapter 3: Using GUI Objects and the Visual Studio IDE.
2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
 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.
Integrated Development Environment (IDE)
Jozef Goetz,  2006 Pearson Education, Inc. All rights reserved.  2002 Prentice Hall. All rights reserved. expanded by J. Goetz, 2009.
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 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
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.
Chapter 2 – Introduction to the Visual Studio .NET IDE
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
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.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 2.1 Test-Driving the Welcome Application 2.2.
Visual Basic CDA College Limassol Campus Lecture:Pelekanou Olga Semester C Week - 1.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
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.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Address Book Application Introducing Database Programming.
Addison Wesley is an imprint of © 2011 Pearson Addison-Wesley. All rights reserved. Chapter 2 Creating Applications with Visual Basic.
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.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
 2009 Pearson Education, Inc. All rights reserved. 1 CS1120 Introduction to Windows Forms Applications Many slides modified by Prof. L. Lilien (even many.
 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.
 2007 Pearson Education, Inc. All rights reserved Introduction to the Visual Basic Express 2005 IDE.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
 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.
Dive Into® Visual Basic 2010 Express
Chapter 2: The Visual Studio .NET Development Environment
Visual Basic Code & No.: CS 218
Chapter 2 – Introduction to the Visual Studio .NET IDE
1. Introduction to Visual Basic
Visual programming Chapter 1: Introduction
Introduction to the Visual C# 2005 Express Edition IDE
Chapter 2 – Introduction to the Visual Studio .NET IDE
Visual Studio.
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Presentation transcript:

Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education, Inc. All Rights Reserved.

 Visual Studio 2010 is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also called applications) written in various.NET programming languages. © by Pearson Education, Inc. All Rights Reserved.

 Introduction to Microsoft Visual Basic 2010 Express Edition ◦ To start Microsoft Visual Basic 2010 Express Edition, select Start > All Programs > Microsoft Visual Studio ◦ The Start Page displays. ◦ The Start Page The Start Page links are organized into sections— Recent Projects, Get Started and Latest News ◦ At any time, you can return to the Start Page by selecting View > Start Page. © by Pearson Education, Inc. All Rights Reserved.

 The Recent Projects section contains information on projects you’ve recently created or modified.  The Get Started section focuses on using the IDE for creating programs and learning Visual Basic.  The Latest News tab provides links to the latest Visual Basic developments (such as updates and bug fixes). © by Pearson Education, Inc. All Rights Reserved.

 Customizing the IDE and Creating a New Project ◦ To begin programming in Visual Basic, you must create a new project or open an existing one. ◦ To create new project: 1)File > New Project 2)Or from the Start Page -> New Project ◦ To Open existing project: 1)File > Open Project 2)Or from Start Page -> Recent Projects 3)Or also from Start Page -> Open Projects © by Pearson Education, Inc. All Rights Reserved.

 A project is a group of related files, such as the Visual Basic code and any images that might make up a program.  solutions is a group folder contains one or more projects.  Multiple-project solutions are for large-scale programs.  Each program we create consists of a single project.  Visual Studio provides several templates.  Templates are the project types users can create in Visual Basic—Windows Forms applications, console applications, WPF applications and others. © by Pearson Education, Inc. All Rights Reserved.

 In this chapter, we build a Windows Forms Application.  A Windows Forms application executes within a Windows operating system and has a graphical user interface (GUI)— the visual part of the program with which the user interacts. © by Pearson Education, Inc. All Rights Reserved.

 By default, Visual Studio assigns the name WindowsApplication1 to a new Windows Forms Application project and solution.  Select Windows Forms Application, then click OK to display the IDE in Design view, which contains the features that enable you to create programs. © by Pearson Education, Inc. All Rights Reserved.

 Viewing the Form ◦ Design Mode ◦ To view the Form in its design mode:  double click on the Form’s name in the Solution Explorer Window.  The Form will appear with tab having the following “FormName.vb [Design]” ◦ Code Mode ◦ To view the Form in its Code mode:  Right click on the Form.  Select View Code  Then the code will be viewed in a separate tab with the same name “FormName.vb” © by Pearson Education, Inc. All Rights Reserved.

© by Pearson Education, Inc. All Rights Reserved.

© by Pearson Education, Inc. All Rights Reserved.

 The rectangle in the Design area titled Form1 (called a Form) represents the main window of the Windows Form s application that you’re creating.  Visual Basic applications can have multiple Form s (windows).  You can customize the Form by adding GUI controls  GUI controls includes Textboxes, buttons, labels, combobox,..etc. © by Pearson Education, Inc. All Rights Reserved.

 Collectively, the Form and controls make up the program’s GUI.  Users enter data (inputs) into the program by typing at the keyboard, by clicking the mouse buttons and in a variety of other ways.  Programs use the GUI to display instructions and other information (outputs) for users to view. © by Pearson Education, Inc. All Rights Reserved.

 Commands for managing the IDE and for developing, maintaining and executing programs are contained in menus, which are located on the menu bar of the IDE  The set of menus displayed depends on what you’re currently doing in the IDE. © by Pearson Education, Inc. All Rights Reserved.

 You can access many of the more common menu commands from the toolbar.  The standard toolbar it contains icons for the most commonly used commands, such as opening a file, adding an item to a project, saving files and running applications. © by Pearson Education, Inc. All Rights Reserved.

 You can customize the IDE’s toolbars.  Select View > Toolbars. © by Pearson Education, Inc. All Rights Reserved.

 The IDE provides windows for accessing project files and customizing controls.  This section introduces several windows that you’ll use frequently when developing Visual Basic programs.  These windows can be accessed via the toolbar icons or by selecting the desired window’s name in the View menu. © by Pearson Education, Inc. All Rights Reserved.

 The next few sections cover three of Visual Studio’s main windows—the Solution Explorer, the Properties window and the Toolbox.  These windows display project information and include tools that help you build your programs. © by Pearson Education, Inc. All Rights Reserved.

 The Solution Explorer window provides access to all of a solution’s files.  If it’s not shown in the IDE, do the following: ◦ Click the Solution Explorer icon in the IDE -> select View > Other Windows > Solution Explorer ◦ or type L. © by Pearson Education, Inc. All Rights Reserved.

 By default, the IDE displays only files that you may need to edit—other files that the IDE generates are hidden.  The Solution Explorer window includes a toolbar that contains several icons.  Clicking the Show All Files icon displays all the solution’s files, including those generated by the IDE.  Clicking the arrows to the left of a file or folder expands or collapses the project tree’s nodes. © by Pearson Education, Inc. All Rights Reserved.

 The Toolbox ( View > Other Windows > Toolbox ) contains icons representing controls used to customize Form s.  With visual programming, you can “drag and drop” controls onto the Form. © by Pearson Education, Inc. All Rights Reserved.

 The Toolbox groups the GUI controls into categories as follows: ◦ All Windows Forms ◦ Common Controls ◦ Containers ◦ Menus & Toolbars ◦ Data ◦ Components ◦ Printing ◦ Dialogs ◦ WPF Interoperability ◦ Visual Basic PowerPacks ◦ General © by Pearson Education, Inc. All Rights Reserved.

 To display the Properties window: ◦ select View > Other Windows > Properties Window, ◦ click the Properties window toolbar, ◦ or press the F4 key.  The Properties window displays the properties for the currently selected Form, control or file in Design view.  Properties specify information about the Form or control, such as its size, color and position. © by Pearson Education, Inc. All Rights Reserved.

 You can sort the properties window: ◦ Alphabetically from (A-Z or (Z-A) (by clicking the Alphabetical icon) ◦ or categorically (by clicking the Categorized icon). © by Pearson Education, Inc. All Rights Reserved. Alphabetically icon Property icon Event icon