2-1 Chapter 2 Using VB.NET to Create a First Solution.

Slides:



Advertisements
Similar presentations
Chapter 5: Database Forms and Reports
Advertisements

 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Getting Started with VB .NET
 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.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter One An Introduction to Visual Basic 2010.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Lesson 9: Fine-Tuning Your Workflow Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
Lesson 10: Adding Flash, Video, and Sound Content Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver.
Lesson 11: Maximizing Site Design Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
Lesson 13: Building Web Forms Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
IE 411/511: Visual Programming for Industrial Applications
8-1 Chapter 8 Using User-Defined Data Types and Object Oriented Programming.
CHAPTER TWO Creating Simple Visual Basic.NET Windows Applications.
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.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 4 I Need a Tour Guide.
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.
Lesson 12: Working with Code-editing Features Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
5-1 Chapter 5 The Repetition Process in VB.NET. 5-2 Learning Objectives Understand the importance of the repetition process in programming. Describe the.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 7 Using Menus, Common Dialogs, Procedures, Functions, and Arrays.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
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.
4 - 1 Chapter 4: Advanced Excel Skills Management Science: The Art of Modeling with Spreadsheets, 3e S.G. Powell K.R. Baker © John Wiley and Sons, Inc.
Chapter Two Creating a First Project in Visual Basic.
Chapter 111 Information Technology For Management 6 th Edition Turban, Leidner, McLean, Wetherbe Lecture Slides by L. Beaubien, Providence College John.
Copyright © 2000 John Wiley & Sons, Inc. All rights reserved
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.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Copyright © 2000 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that permitted in Section 117 of the 1976.
Lesson 3: Migrating and Configuring User Data
Lesson 23: Configure File Recovery
4-1 Chapter 4 The Selection Process in VB.NET. 4-2 Learning Objectives Understand the importance of the selection process in programming. Describe the.
6-1 Chapter 6 Working with Arrays in VB.NET. 6-2 Learning Objectives Understand the use of list and table arrays in VB.NET projects and the difference.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
Lesson 14: Adding Interactivity with the Spry Framework Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
BBT 10 Visual Basic 03 Enrichment. Tip Before creating any files for your project, first create a new folder Save all of your files in the folder Pieces.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
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.
Copyright 2006 John Wiley & Sons, Inc. Beni Asllani University of Tennessee at Chattanooga Operations Management - 5 th Edition Chapter 10 Supplement Roberta.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Slide 8-1 Chapter 8 Terms Programming Languages Introduction to Information Systems Judith C. Simon.
Addison Wesley is an imprint of © 2011 Pearson Addison-Wesley. All rights reserved. Chapter 2 Creating Applications with Visual Basic.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
A- 1. A- 2 Appendix B Standards of Ethical Conduct for Management Accountants The Institute of Management Accountants has published and promoted the following.
K-1. K-2 Appendix K Standards of Ethical Conduct for Management Accountants The Institute of Management Accountants has published and promoted the following.
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.
H-1 Prepared by Coby Harmon University of California, Santa Barbara Westmont College.
 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.
“Copyright © 2001 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that permitted in Section 117 of the 1976.
3.01 Apply Controls Associated With Visual Studio Form
An Introduction to Programming and VB.NET
How to design a Windows Forms application
Objective 8.02 Apply Procedures to Create Picture Boxes using Images.
3.01 Apply Controls Associated With Visual Studio Form
Introduction to the Visual C# 2005 Express Edition IDE
Transportation and Transshipment Models
Presentation transcript:

2-1 Chapter 2 Using VB.NET to Create a First Solution

2-2 Learning Objectives Begin using Visual Studio.Net and VB.Net Get familiar with the Microsoft Development Environment (MDE) Learn to use of forms in VB.Net solutions Understand controls and their properties Learn to use message box

2-3 Learning Objectives (continued) Get familiar with Code Window to write event handlers List types of files that make a VB.Net project Save an application code Learn to use help system

2-4 The Microsoft Development Environment (MDE) Start page – My Profile Filter option – New Project A number of types – Windows application – Class library – Windows Control Library – …

2-5 New Project Dialog Box

2-6 The MDE Interface

2-7 Key elements of the MDE (1) Project title bar : shows name of project Menu bar : lets the user choose actions Toolbar : replicate commonly used menus Windows buttons : provides instant access to key windows in the MDE

2-8 Key elements of MDE (2) Toolbox : contains user interface elements (controls) that are placed on forms Design window : where you drop controls Solution explorer : shows files for a project or solutions Task List window : use it for a To Do list

2-9 Setting Options for Development

2-10 Solution Explorer Window Displays all parts of a solution – The solutions file – The project file(s) – The classes, forms or modules Button at top allows to switch between code and form display

2-11 Properties window Displays the properties for selected object Allows access to properties at “design time” Use combobox at the top to change the object

2-12 Step-by-Step 2-1: Starting a project Demo

2-13 Form properties Name : the name of the variable referring to the form in code (use a name starting with frm to indicate it refers to a form object Text : the caption in the title bar AcceptButton : the default button CancelButton : corresponds to Esc key

2-14 Startup object

2-15 Step-by-Step 2-2 Creating a form Demo

2-16 Adding controls to a form To create the “visual” interface of application, click controls in toolbox and “draw” them on the form. Types of controls Label PictureBox Button

2-17 Label control Used to display text programmatically User cannot change the text directly Properties – Name (use lbl prefix) – Text – Font – Autosize – …

2-18 PictureBox control Used to display a picture Some Properties – Name (use pic prefix) – Image – SizeMode Normal StretchImage AutoSize CenterImage …

2-19 Button control The obvious place to click for some action! Some properties – Name (use btn prefix) – Text – Font – ….

2-20 Step-by-Step 2-3 Adding controls Demo

2-21 Adding code Develop the logic for the action objects Choose a control Double click on it Code window shows up with a stub for the event procedure Choose the right event in methods List Box Write the code for the event handler This is called an Event Procedure

2-22 The Editor Window

2-23 Simple use of MsgBox( ) It displays a message (the first argument) in a dialog box Can accept more arguments to determine – Text in the title bar of dialog box – What icons are displayed in the dialog box – What buttons are available in the dialog box Can return value indicating what button was clicked

2-24 Testing code Test run the application by – Clicking the Start button – Choosing menu Debug|Start – Pressing F5 You are now in Run Time

2-25 Stop testing You can stop by – Doing whatever will get your application to exit – Clicking the Stop button – Choosing Debug|Stop Debugging menu – Pressing Shift + F5

2-26 Ste-by-Step 2-5: Adding code to button Demo

2-27 Files in VB.NET Solution file (*.sln) Project file (*.vbproj) Form file (*.vb) Resource file (*.resx) AssemblyInvo.vb Folders – Bin – Object

2-28 Changing file names For solution or project file – Right click in solution explorer – Select Rename option For a form file – Use File menu – Save Form1.vb as … option

2-29 Step-by-Step 2-6 Saving a project Demo

2-30 Using VB.NET Help Four types of help Help menu option Dynamic help Web-based help Auto help

2-31 Help menu Options Dynamic Help Contents Index Search

2-32 Step-by-Step 2-7 Using Help in VB.NET Demo

2-33 Copyright 2004 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that permitted in section 117 of the 1976 United States Copyright Act without express permission of the copyright owner is unlawful. Request for further information should be addressed to the Permissions Department, John Wiley & Sons, Inc. The purchaser may make back-up copies for his/her own use only and not for distribution or resale. The Publisher assumes no responsibility for errors, omissions, or damages caused by the use of these programs or from the use of the information herein