Dive Into® Visual Basic 2010 Express

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.
© 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 …
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.
 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.
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.
IE 411/511: Visual Programming for Industrial Applications
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.
 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.
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.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
 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
© 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.
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.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
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.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter One An Introduction to Visual Basic 2008.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Visual Basic 2010 How to Program
Chapter 2: The Visual Studio .NET Development Environment
Working in the Forms Developer Environment
Chapter 1: An Introduction to Visual Basic 2015
Visual Basic Code & No.: CS 218
Chapter Topics 15.1 Graphical User Interfaces
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
Program and Graphical User Interface Design
1. Introduction to Visual Basic
Visual programming Chapter 1: Introduction
3.01 Apply Controls Associated With Visual Studio Form
Visual studio 2010 SENG 403, Tutorial 2 SENG Winter 2011.
Introduction to the Visual C# 2005 Express Edition IDE
Program and Graphical User Interface Design
Social Media And Global Computing Introduction to Visual Studio
Chapter 2 – Introduction to the Visual Studio .NET IDE
Understanding the Visual IDE
CIS16 Application Development Programming with Visual Basic
Visual Studio.
Chapter 15: GUI Applications & Event-Driven Programming
Creating a Windows Application Project in Visual Studio
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Chapter 4 Enhancing the Graphical User Interface
Presentation transcript:

Dive Into® Visual Basic 2010 Express Visual Basic 2010 How to Program © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

© 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.1  Introduction 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. © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.2 Overview of the Visual Studio 2010 IDE Introduction to Microsoft Visual Basic 2010 Express Edition To start Microsoft Visual Basic 2010 Express Edition, select Start > All Programs > Microsoft Visual Studio 2010. 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. © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

© 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.2 Overview of the Visual Studio 2010 IDE 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). © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.2 Overview of the Visual Studio 2010 IDE 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: File > New Project Or from the Start Page ->New Project To Open existing project: File > Open Project Or from Start Page -> Recent Projects Or also from Start Page -> Open Projects © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.2 Overview of the Visual Studio 2010 IDE 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. © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.2 Overview of the Visual Studio 2010 IDE 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. © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

© 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.2 Overview of the Visual Studio 2010 IDE 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. © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

3.2.2 Modifying ASimpleProgram to Programmatically Change the Label’s Text Property 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” © 1992-2011 by Pearson Education, Inc. All Rights Reserved.

© 1992-2010 by Pearson Education, Inc. All Rights Reserved.

© 1992-2011 by Pearson Education, Inc. All Rights Reserved.

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

© 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.2 Overview of the Visual Studio 2010 IDE 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. © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.3  Menu Bar and Toolbar 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. © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

© 1992-2010 by Pearson Education, Inc. All Rights Reserved.

© 1992-2010 by Pearson Education, Inc. All Rights Reserved.

© 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.3  Menu Bar and Toolbar 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 . © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

© 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.3 Menu Bar and Toolbar You can customize the IDE’s toolbars. Select View > Toolbars . © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.4 Navigating the Visual Studio IDE 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. © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

© 1992-2010 by Pearson Education, Inc. All Rights Reserved.

© 1992-2010 by Pearson Education, Inc. All Rights Reserved.

© 1992-2010 by Pearson Education, Inc. All Rights Reserved.

© 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.4 Navigating the Visual Studio IDE 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. © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.4.1 Solution Explorer 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 <Ctrl> <Alt> L. © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.4.1 Solution Explorer 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. © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

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

© 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.4.2 Toolbox 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 © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.4.3 Properties Window 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. © 1992-2010 by Pearson Education, Inc. All Rights Reserved.

© 1992-2010 by Pearson Education, Inc. All Rights Reserved.

2.4.3 Properties Window 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). Alphabetically icon Event icon Property icon © 1992-2010 by Pearson Education, Inc. All Rights Reserved.