Introduction to VB programming

Slides:



Advertisements
Similar presentations
Chapter 5 Menus, Common Dialog Boxes, Sub Procedures, and Function Procedures Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved.
Advertisements

Writing General Procedures Often you will encounter programming situations in which multiple procedures perform the same operation This condition can occur.
Programming with Objects: Class Libraries and Reusable Code.
IS 1181 IS 118 Introduction to Development Tools VB Chapter 06.
Chapter 4 - Visual Basic Schneider
CVEV 118/698 Visual Basic Lecture 1 Prof. Mounir Mabsout Expert 1: Elsa Sulukdjian Expert 2: Walid El Asmar.
The Visual Basic Integrated Development Environment.
VB – Core III Functions Sub-routines Parameter passing Modules Scope Lifetime.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
BIL528 – Bilgisayar Programlama II Introduction 1.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
McGraw-Hill/Irwin Programming in Visual Basic 6.0 © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Update Edition Chapter 6 Multiple Forms.
Microsoft Visual Basic 2008 CHAPTER 8 Using Procedures and Exception Handling.
Microsoft Visual Basic 2005 CHAPTER 9 Using Arrays and File Handling.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Multiple Forms and Standard Modules
Why to Create a Procedure
® Microsoft Access 2010 Tutorial 11 Using and Writing Visual Basic for Applications Code.
1 Workshop 4 (B): Visual Basic Test Project Mahidol University June 13, 2008 Paul Evenson University of Delaware Bartol Research Institute.
Using Arrays and File Handling
5-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 5 Menus, Common Dialog Boxes, Sub Procedures, and Function Procedures.
Multiple Forms, Container Controls, AddHandler This presentation is based on the Forms and ContainerControls VB Projects 1.
CSCI 3327 Visual Basic Chapter 6: Methods: A Deeper Look UTPA – Fall 2011.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
Introduction to Visual Basic.NET Chapter 2 Introduction to Controls, Events.
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.
VB Games: Preparing for Memory Brainstorm controls & events Parallel structures (again), Visibility, LoadPicture, User-defined procedures, Do While/Loop,busy.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
BIL528 – Bilgisayar Programlama II Introduction 1.
Introduction to Windows Programming
Introduction to VB.NET 2005 Dr. McDaniel IDS4704 Spring 2005.
IMS 3253: Subroutines 1 Dr. Lawrence West, MIS Dept., University of Central Florida Topics Procedures Subroutines Parameters –By Value.
Vocabulary in VB So Far. Assignment: Used to change the value of an object at run time Used to change the value of an object at run time.
MS Visual Basic 6 Walter Milner. VB 6 0 Introduction –background to VB, A hello World program 1 Core language 1 –Projects, data types, variables, forms,
IMS 4480: Introduction to Web Services 1 Dr. Lawrence West, MIS Dept., University of Central Florida Introduction to Web Services—Topics.
CHAPTER SIX Reducing Program Complexity General Sub Procedures and Developer-defined Functions.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
Introduction to VB programming Dr. John P. Abraham UTPA Chapters 2 & 3.
COMPREHENSIVE Access Tutorial 11 Using and Writing Visual Basic for Applications Code.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Subroutines and Functions Chapter 6. Introduction So far, all of the code you have written has been inside a single procedure. –Fine for small programs,
Excel Functions. Part 1. Introduction 2 An Excel function is a formula or a procedure that is performed in the Visual Basic environment, outside the.
Visual Basic Fundamental Concepts
IS 350 Application Structure
Visual Basic Code & No.: CS 218
CSCI 3328 Object Oriented Programming in C# Chapter 2: Introduction to Visual C# Programming UTPA – Fall 2012 This set of slides is revised from lecture.
Introduction to VB6 Week 1 3/2/2004 PPCC - Introduction to VB6
Using Procedures and Exception Handling
Introduction to VB programming
Objectives Learn about Function procedures (functions), Sub procedures (subroutines), and modules Review and modify an existing subroutine in an event.
Variables and Arithmetic Operations
Visual Basic..
Chapter 6 Sub Procedures
The University of Texas – Pan American
Simple Windows Applications
1. Open Visual Studio 2008.
CSCI 3327 Visual Basic Review: Final Exam
CS285 Introduction - Visual Basic
Chapter 7: Using Functions, Subs, and Modules
CSCI 3327 Visual Basic Review: Exam I
CSCI 3327 Visual Basic Chapter 6: Methods: A Deeper Look
Tonga Institute of Higher Education
Chapter 8 - Functions and Functionality
Tutorial 11 Using and Writing Visual Basic for Applications Code
Presentation transcript:

Introduction to VB programming By Dr. John Abraham For students in 6303

A console program Start Visual Studio 2005 Click create Project Click project type Visual Basic (left side) Click on console application Give it a name and Press OK Change the name of the module

VB console program Declare global variables and constants Write subroutines and functions Must have a subroutine called main Pass parameters properly. Observe Byval and byRef Run the program

Writing to a file Imports system.io Declare a variable of type io.streamwriter Dim outfile as io.streamwriter Assign a physical filename to create Outfile=io.file.createText(“c:\outfile.txt”) Write to file Outputfile.writeLine(“this is a sample”) Sample program - carpet

Windows program Click on Windows application instead of console Learn how to use toolbox Learn to set properties Learn to write code for events Learn Looping for this example (Interest program)

Multiple Forms Learn how to manipulate more than one form Making visible invisible Set focus Learn how to add pictures Sample program: cards