Visual Basic A Quick Tutorial VB Review for ACS 367.

Slides:



Advertisements
Similar presentations
Super Logo Help Sheets…. Help Save Open Memory View Problems Projects Shortcuts Click on the labels to find out more about each icon!
Advertisements

What Was I Thinking??. Key Terms 1. Control 1. Control 2. Design Mode 2. Design Mode 3. Event 3. Event 4. Form 4. Form 5. Interface 5. Interface 6. Properties.
An Introduction to Visual Basic Terms & Concepts.
Information System Design Lab 5&6. User Interface Design.
Creating a User Form. A Better Interface Our programs can use input boxes for input and write on the spreadsheet page for output This works ok but is.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Customizing Reports. Custom Reports A report is a formatted hardcopy of the contents of one or more tables from a database. Although you can format and.
Using the Visual Basic Editor Visual Basic for Applications 1.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Fundamentals of Programming in Visual Basic 3.1 Visual basic Objects Visual Basic programs display a Windows style screen (called a form) with boxes into.
Introduction to Visual Basic Chulantha Kulasekere.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Lab 8 – C# Programming Adding two numbers CSCI 6303 – Principles of I.T. Dr. Abraham Fall 2012.
05/09/ Introducing Visual Basic Sequence Programming.
Lab 9 – User Forms Design. User Forms What are user forms? –Known as dialog boxes –Major ways for getting user input An example of using user forms: Monthly.
Advanced Report and Form Techniques – Project 7. 2 Project 7 Overview This project shows how to create queries for reports, add command buttons to forms,
VBA for Excel. What is a spreadsheet? u An Excel spreadsheet is a set of worksheets  Each worksheets is made up of rows and columns of cells  Rows are.
An Introduction to Visual Basic
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
Teacher: Ms. Olifer MICROSOFT VISUAL STUDIO 2010: PROPERTIES OF WINDOWS FORM OBJECT.
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 4 I Need a Tour Guide.
Review for Mid-term! October 26, Review Homework Worksheet True or False Operators are symbols that perform specific operations in Visual Basic.
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
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 3 Introducing Visual Basic
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
Quick guide on making PowerPoint slides  PowerPoint is a presentation program  A PowerPoint slideshow is a stack of slides being presented one after.
Chapter Two Designing Applications Programming with Microsoft Visual Basic th Edition.
Visual Basic.NET BASICS Lesson 3 Events and Code.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Working with the VB IDE. Running a Program u Clicking the”start” tool begins the program u The “break” tool pauses a program in mid-execution u The “end”
Chapter Two Creating a First Project in Visual Basic.
Data Types and Variables. Data Type! Computers are all about Data! Data can be in the form of Text Dates Sounds Pictures.
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.
CS130 Project 1 A simple VB application ("project" or program): user enters amount of sales then clicks the "Calculate button", the application displays.
Visual Basic CDA College Limassol Campus Lecture:Pelekanou Olga Semester C Week - 1.
By Felixberto Dominic B. Eruela.  Using a computer to create, edit, and print documents. Of all computer applications, word processing is the most common.
McGraw-Hill/Irwin Programming in Visual Basic 6.0 © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Update Edition Chapter 2 More Controls.
Lesson 14: Exploring Excel Learning Objectives After studying this lesson, you will be able to:  Explain ways Excel can help your productivity.
1 Visual Basic Part I - A tool for customizing your program Principles of GIS
Lesson 4 Mathematical Operators! October 6, 2009.
Microsoft Visual Basic 2005 BASICS Lesson 3 Events and Code.
Customizing Reports Adding a Date to a Report Reference Window Adding a Date to a Report Display the report in the design view Click the Text Box Tool.
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.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Sorry, the pen lost control. Anyway, you need to download both the.vbp and the.frm for each project. I looked at PrCalc, I did not look at inventory.
More Visual Basic!. Creating a Standalone Program A standalone program will allow you to make a program file that can be run like other Windows programs,
The Program Editor1 Visual Basic (VB) supports a text editor (not a word processor) that permits the writing and modification of program code. The editor.
VB.NET and Databases. ADO.NET VB.Net allows you many ways to connect to a database. The technology used to interact with a database or data source is.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
I am using Visual Basic 6 for this class. If you want to use a different version, please contact me. Thanks!
Problem: Take Two Numbers, Add Them Together And Display The Results. Now To Build The Flowchart… We Probably Need One Like This… Let’s Add The Routines…
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 6 Looping and Multiple Forms.
Chapter 7 Multiple Forms, Modules, and Menus. Section 7.2 MODULES A module contains code—declarations and procedures—that are used by other files in a.
Chapter 4: Do-It-Yourself Designing (Designing Interfaces)
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Chapter 1: An Introduction to Visual Basic 2015
Chapter 8: Writing Graphical User Interfaces
1. Introduction to Visual Basic
How to design a Windows Forms application
An Introduction to Visual Basic
I dragged over the label tool (A icon) and put it on the form.
Visual Basic Menu Editor
Visual C# - GUI and controls - 1
Introduction to PowerPoint Part 1
Introduction to Visual Basic 2010
Presentation transcript:

Visual Basic A Quick Tutorial VB Review for ACS 367

 Let’s look at the New project screen. New Tab Standard.exe Click Open

Main Window Tool Box Form Window Properties Window Project Explorer Window Caption, Min, Max

Tool Box Can you tell what each icon represents? The ones most used will be Labels, textboxes, command buttons and image box. Use labels if users do not change the information and text boxes if they do.

Project Explorer Window tells you all the forms, data environments and modules that you have in a project.

Properties Window For every object, you can set its properties directly through this window at design time rather than having to write code.

Objects Name Property  VB gives every object a default name such as “label1” or “text1”. To be able to work more efficiently, we need to change the name so that it has meaning.  Since we have different kinds of objects, we use a set prefix to distinguish that type of object.  Only letters, numbers, and underscores are allowed for names.

Save a project.  When you save a project, you must save the form and save the project. If you do not save both of them, you will have a form with no way to open it or a project that is empty.

 Use the A icon and add a label to your form.  Look at the Caption and the Name properties The name would be something like “lblLastName” (no spaces) but the caption can be anything like “Last Name:”

Adding an image  Double Click the image tool – images are sizeable, pics aren’t  This action adds a box and  Then we will designate in the properties box what image to insert.

Adding a Command Button  Double Click the Command Icon  Set the Name to cmdExit  Set the Caption to E&xit  If you type an ampersand in front of the X, it will give the user keyboard access.

 To make a command button such as Calculate or Exit or Clear the default button, simply click that button and set the Default property to true.

Write code for the Exit button.  Double click the Exit button and the SCRIPT window will open. Notice the object (cmdExit) and the event procedure (click)

All the events available for the command button can be found here.  Type in the word end.  The proper format is to tab in for readability.