Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.

Slides:



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

Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
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.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
Introduction to Visual Basic Programming. Lecture Outline History What is Visual Basic First Look at the VB 6.0 Environment Some VB Terminology Our first.
The Microsoft View: Module 1: Getting Started. Copyright Course 2559B, Introduction to Visual Basic®.NET Programming with Microsoft®.NET. Lecture 1 Microsoft.
Compunet Corporation Programming with Visual Basic.NET GUI Week # 11 Tariq Ibn Aziz.
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.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
 Visual Basic is an object-oriented language used to write application programs that run in Windows or on the Internet using a graphical user interface.
CIS 115 Lecture 2.  Visual Studio 2005 Professional Edition (Requires Windows XP Pro)  MSDN Library for Visual Studio 2005 Available from MSDNAA.
Introduction to Programming and Visual Basic
The Visual Studio. NET and VB
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Visual Basic Chapter 1 Mr. Wangler.
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
Tutorial 11 Introduction to Visual Basic zLanguage developed for special-purpose Windows applications – 1991 zUses IDE – Integrated Development Environment.
05/09/ Introducing Visual Basic Sequence Programming.
Microsoft Visual Basic 2005: Reloaded Second Edition
Chapter 1 P. 1 Writing Windows applications with Visual Basic Figure 1.1 The first program works as follows: (These operations can be performed in any.
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
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
Chapter 3 Introducing Visual Basic.NET. 3.1 Visual Basic.NET Windows Programming -Used to create Windows, Web, and Console applications -Uses predefined.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Introduction to Visual Basic.NET Programming In Visual Basic.NET.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Chapter Two Creating a First Project in Visual Basic.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
What is Visual Basic.NET? 110 B-1 e.g. a word processor doesn’t do anything until the user clicks on a button, types text... A programming language that.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
CSC 157 (Blum)1 Hello World. CSC 157 (Blum)2 Start/Programs/Microsoft Visual Studio.NET 2003/Microsoft Visual Studio.NET 2003.
Copyright © 2011 Pearson Addison-Wesley What is a Program Made Of? Keywords (Reserved Words) – Words with special meaning that make up a high-level programming.
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
 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 Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
Chapter 1 Introduction to Visual Basic.NET Programming In Visual Basic.NET © 2001 by The McGraw-Hill Companies, Inc. All rights reserved.
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.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
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.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
2-1 Chapter 2 Using VB.NET to Create a First Solution.
Visual Basic.NET Windows Programming
Chapter 2: The Visual Studio .NET Development Environment
Chapter 1: An Introduction to Visual Basic 2015
Introduction to Computer CC111
3.01 Apply Controls Associated With Visual Studio Form
1. Introduction to Visual Basic
3.01 Apply Controls Associated With Visual Studio Form
Chapter 2 Visual Basic Interface
Social Media And Global Computing Introduction to Visual Studio
Hands-on Introduction to Visual Basic .NET
Understanding the Visual IDE
CIS16 Application Development Programming with Visual Basic
Presentation transcript:

Visual Basic.Net

Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available from MSDNAA

What is Visual Basic.Net 4 th Generation Programming Environment / Development Language Based on BASIC language Beginners All-Purpose Symbolic Instructional Code Most widely used tool for developing Windows Applications Graphical User Interface (GUI) Menus, Buttons, Icons to help the user Full Object-Oriented Programming Language

Visual Studio.NET A platform that allows the development and deployment of desktop and web applications Allows user choice of many.NET languages May program in One of them May create different parts of application in different languages Visual Basic C# (C Sharp) C++ J++ Etc.

Visual Studio.NET Integrated Development Environment – allows the automation of many of the common programming tasks in one environment Writing the code Checking for Syntax (Language) errors Compiling and Interpreting(Transferring to computer language) Debugging (Fixing Run-time or Logic Errors) Running the Application

Using Visual Studio.NET

Creating an Application Select the “Create Project” option from the “Recent Projects” box on the Start Page

Default Settings

Design Window ToolboxToolbox Solution Explorer Properties Window

Creating the Application Step 1: Add a Control to the Form Add a Button to the Form Look in the Toolbox for the Button Control Select the Button with the Mouse Draw a Rectangle Region in the Design Window by holding the mouse button down Release the mouse button to see your button (Can also be added by double clicking on the button in the Toolbox)

Creating the Application Add a Second Button to the Form Put it in the lower right corner The project now contains a form with 2 button controls

Setting Control Properties Properties Determine the Look and Feel (and sometimes behavior) of a Control Set through the Properties Window Properties Set for this Application Name Text

Setting Control Properties Click on the Control in the Design Window Select the appropriate property in the Properties Window

Control Name Should be Meaningful NOT button1, form1, textbox1 Should begin with a 3 character prefix Button  btn Label  lbl Textbox  txt Set the name of button1 to btnWelcome Set the name of button2 to btnExit

Text Property Determines the visible text on the control Change the text property bntWelcome  set to “Say Welcome” btnExit  set to “Exit” Do not need to include the “ “ in your text field Notice how the buttons now display the new text

Add the Code To Make the GUI Functional Open the Code Editor F7 Select View Menu then Code option Double Click on the Control you are writing the code for

Comments Provide Documentation & Explanations Begin with a ‘ (followed by an * for readability)

Event Code (Procedures) GUI programs are Event Driven Event Procedures respond to events Writing an Event Procedure Double click on control from Design Window Select Control & Event from drop down windows in Code Editor

Select the Control for the Event Procedure Select the btnWelcome control from the Form Controls List Box

Select the Event for the Event Procedure Select the Click event from the list of many available events Buttons have 57 possible events they can respond to

Event Procedure Stub Beginning of Procedure is created for you If you create stub by double clicking on control it will create a stub for the most commonly used event

Event Procedure Write the code that you want executed when the user clicks on the btnWelcome button Type: MsgBox (“Welcome to Visual Basic”) Must be contained within the Event Procedure Stub

Writing Visual Basic Code Not Case Sensitive Visual Basic will “correct” case issues for you Keywords are in Blue Special reserved words Comments in Green Problems with Syntax (Language) will be underlined in blue

Create an Event Procedure Create an Event Procedure for the btnExit button Have it display “Goodbye” in a MsgBox Then “End” – this will terminate the program

Switching to Design Window You can switch between the Design Window and the Code Window (once opened) by clicking on the tabs at the top of the Design and Code Windows Form1.vb(Design) is the design window Form1.vb is the Code Window

Running the Application Click the Run Icon on the Standard Toolbar Press F5 This will begin the program Display the Form/Window Nothing will happen Waiting on an Event

Event Driven Program Click on the “Say Welcome” button The message box should display Click on the “Exit” button The message box should display The application should terminate

Save the Project Make sure to save your work SAVE ALL (not Save Form) Visual Basic applications are made of several files - Often even several forms