CS130 Project 1 A simple VB application ("project" or program): user enters amount of sales then clicks the "Calculate button", the application displays.

Slides:



Advertisements
Similar presentations
Prof. Yitzchak Rosenthal
Advertisements

Windows Basics An Introduction to the Windows Operating System.
Mouse Tutorial for Win XP In this tutorial you will learn to: Move the mouse Click and double click Make selections Manage windows Use menus Click the.
Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition Windows XP Unit A.
DEVELOPING ICT SKILLS PART -TWO
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Using Macros and Visual Basic for Applications (VBA) with Excel
Loading Excel Double click the Excel icon on the desktop (if you have this) OR Click on Start All Programs Microsoft Office Microsoft Office Excel 2003.
Intro to Microsoft PowerPoint 2010 Public Computer Center, Moore Memorial Library, Greene, NY.
Windows 7. Objectives After completing this lesson, you will be able to: oExplain the common functions of an operating system. oIdentify the basic components.
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.
XP New Perspectives on Microsoft Access 2002 Tutorial 61 Microsoft Access 2002 Tutorial 6 – Creating Custom Reports.
XP Tutorial 4 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Personalizing Your Windows Environment Tutorial 4.
Advanced Microsoft Word Hosted by Jared Hoffman Topics Keyboard Shortcuts Customizing Toolbars and Menus Auto Format & Auto Correct Tabs Inserting Pictures.
European Computer Driving Licence
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Chapter 4: Working with Windows Types of Windows –Program Windows –Message Boxes –Dialog Boxes Elements of a Window –Window Panes –Scroll Bars –Menus –Tool.
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.
Exploring the Basics of Windows XP
Access Tutorial 10 Automating Tasks with Macros
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
VistA Imaging Display User Guide. VistA imaging Display 2 VISTA IMAGING DISPLAY There are minor changes in this document from previous versions of the.
Lesson 1 – Microsoft Excel The goal of this lesson is for students to successfully explore and describe the Excel window and to create a new worksheet.
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.
European Computer Driving Licence Syllabus version 5.0 Module 4 – Spreadsheets Chapter 22 – Functions Pass ECDL5 for Office 2007 Module 4 Spreadsheets.
Microsoft PowerPoint Getting Started Guide Prepared for Towson University Dr. Jeff M. Kenton Amy Chase Martin 2007.
IE 411/511: Visual Programming for Industrial Applications
 Starting Excel 2003  Using Help  Workbook Management  Cursor Management  Manipulating Data  Using Formulae and Functions  Formatting Spreadsheet.
Chapter 3: Using GUI Objects and the Visual Studio IDE.
A First Look At Microsoft Visual Basic Lesson 1. What is Microsoft Visual Basic? Microsoft Visual Basic is a software development tool, which means it.
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
Productivity Programs Common Features and Commands.
Windows Tutorial Common Objects ACOS: 1, 4. Using the Taskbar 1. Using the taskbar, you can switch between open programs and between open documents within.
Chapter 3 Introducing Visual Basic
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.
COMPREHENSIVE Access Tutorial 6 Using Form Tools and Creating Custom Forms.
XP New Perspectives on Microsoft Windows 2000 Professional Windows 2000 Tutorial 1 1 Microsoft Windows 2000 Professional Tutorial 1 – Exploring the Basics.
Exploring Windows and Essential Computing Concepts 1 Windows Desktop u Windows Basics u Icon u Start Button u My Computer u Network Neighborhood u Recycle.
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Introduction to Windows Created by Mrs. Leverette.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
Visual Basic Programming Introduction VB is one of the High level language VB has evolved from the BASIC language. BASIC stands for Beginners All-purpose.
Fall 2003Sylnovie Merchant, Ph.D. ACCESS Tutorial Note: The purpose of this tutorial is to provide an introduction to some of the functions of ACCESS in.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 4 Working with Variables, Constants, Data Types, and Expressions.
Computing Fundamentals Module Lesson 7 — The Windows Operating System Computer Literacy BASICS.
Microsoft Visual Basic 2010 CHAPTER TWO Program and Graphical User Interface Design.
1 Visual Basic Part I - A tool for customizing your program Principles of GIS
Windows 95/NT/XP. What is Windows 95/NT/XP n A program that sets up an environment for you to work in on your computer, based on colorful pictures (icons)
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 3 Building an Application in the Visual Basic.NET Environment.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
You’ll Make a spreadsheet which will be like a Mad Libs Game. These Are The Directions.
Enhancing a Presentation with Pictures, Shapes, and WordArt
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Today We Will Review: Operating Systems (Windows) (week 3 & 4) Starting up MS Windows Desktop and its contents Functions of the desktop components Brain.
MS WORD INFORMATION TECHNOLOGY MANAGEMENT SERVICE Training & Research Division.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
International Computer Driving Licence Syllabus version 5.0
Building a User Interface with Forms
Chapter 2 – Introduction to the Visual Studio .NET IDE
Program and Graphical User Interface Design
How to design a Windows Forms application
Access Project 8 Using Visual Basic for Applications (VBA) and Creating Multi-Page Forms.
Program and Graphical User Interface Design
Windows xp PART 1 DR.WAFAA SHRIEF.
Visual Studio.
European Computer Driving Licence
Presentation transcript:

CS130 Project 1 A simple VB application ("project" or program): user enters amount of sales then clicks the "Calculate button", the application displays the correct the "commission"

Structure of the "Desktop" and a "Window"

The "Commission" application

How to launch MS VB6.0 IDE from Desktop: start from the "task bar"

The "New Project" window: note the various types of projects

Configuring the VB environment: single document Interface (SDI)

Configuring the VB environment: single document Interface (SDI) continued Select the "SDI Development Environment"

Configuring the VB environment: single document Interface (SDI) continued Deselect the "Default to Full Module View"

Close and restart VB, choose "Standard EXE" as before VB displays "Tool Box", "Form", "Project", and "Properties" windows

Using "Tool Box" and "Properties" windows, you can easily design the layout (buttons and boxes, etc.) of the desired GUI of your application in the "Form" window. Note that the "Pointer" tool (an arrow) is now being selected

Right click anywhere in the gray area of the menu bar displays the "Shortcut" menu

Only one window can be active at a time; "Form" window is now the active window

Resizing the a window: move the Pointer to the border of a window, the arrow pointer changes to a double-headed arrow

Resizing the a window: notice the double-headed arrow continued

Moving a window: move the pointer to the blue Title Bar, drag the window to desired place on the window as shown in the next slide

The "Form" window is now approximately in the middle of the Desktop

The finished GUI for the "Sales Commission" project

Identify the tools available in the Tool Box The tool-tips Point to a particular tool icon in the Tool Box, VB automatically displays the tool-tip of the icon.

Windows that are needed to design the GUI

The "Label" icon in the Tool Box is being pointed to

The "Label" icon in the Tool Box has been selected. Notice the pointer change to a cross

Use the "Label" pointer (a cross) to draw or create a "Label" box (next slide). Each box in the Form window is formally known as an "object" whose "Properties" (attributes) can be defined through the "Properties " window. Each object or box is also known as a "control"

A Label Box has been created. Note that the box can be moved (point to the box, hold down the left mouse button and drag to desired location) and resized (use the resizing handles) as desired

The second Label box is created in similar manner

The "Textbox" tool selected

Holding down the left mouse button displays the left and top positions (relative to upper left corner of the Form window 0x0), size information is displayed in the Properties window

First Textbox created

Second Textbox created

"CommandButton" created

CommandButton is about to be moved

CommandButton is moved to new location

TextBox 1 is being resized (only the height here)

TextBox 1 is being resized (only the height here) continued

TextBox 1 has been resized (only the height)

TextBox 2 is being resized

TextBox 2 has been resized

Setting properties of various controls (objects or boxed) Each control or object is associated with a set of properties listed in the Properties window. The properties are listed alphabetically or by category (you can use either one by clicking the tab of your choice)

The "Caption" property Caption is the text displayed in a control or in the Title bar of a Form. Once set, the caption remains unchanged when the application (the program) runs.

Setting the "Caption" property of LabelBox 1. Note the FontColor properties is currently being selected

Caption property is selected. The default is "Label1" and is to be changed to "SALES"

Replace Label1 with SALES in the Properties box

"Label2" and "Command1" have been changed to "COMMISSION" and "CALCULATE", respectively. Also, "Form1" in the title bar is about to be changed to "Calculating Sales Commission"

"Form1" in the title bar has been changed to "Calculating Sales Commission"

Another way of activating an arbitrary control on a Form so that its properties can be changed

The "Text" property TextBox is usually used to display a value (may be numeric or non-numeric), which may be changed when the application is executed (run). In our example, the default values are "Text1" and "Text2" in two text boxes, and both are non- numeric (not numbers). We want to change the default values to "blanks" in our example. In other word, before the application is run, we want to display nothing (blanks) in these two boxes.

Change "Text1" and "Text2" to blanks in textbox1 and textbox 2

Change "Text1" and "Text2" to blanks in textbox1 and textbox 2 continued

Both text boxes have been blanked

The "Locked", "TabIndex" and "TabStop" properties The Locked property prevents the content of a text box from being changed (if set from "false" to "ture"). The TabIndex property controls the order or moving from box to box as the Tab key is pressed (0, 1, 2, 3, etc.). The "TabStop" property determines if a box is to be skipped if the Tab key is pressed (false to skip)

Setting the TabStop property of a text box; also the Locked property has been set to true

TabStop has been set to false for the CALCULATE control

Form1has been selected (click any empty area on the form)

Change the "Name" property of a control or object (it is critical to know that the name and caption are two different properties!!!)

The "name" property of Form1 (default) has been changed to SLSCOMSN

Form1 is not changed to SLSCOMSN in the Project window

Writing code (instruction): the more interesting and challenging part of application design The boxes you've so far created are just a GUI; nothing useful will happen to them unless appropriate code (program modules) is associated with those boxes. The code (coded in BASIC language) allows actions to be triggered, e.g., if SALSE amount has been properly entered, upon clicking the CALCULATE button (control), computed commission will be displayed.