PROGRAMMING LANGUAGE 2 (SPM3112) NOOR AZEAN ATAN MULTIMEDIA EDUCATIONAL DEPARTMENT UNIVERSITI TEKNOLOGI MALAYSIA

Similar documents
Dive Into Visual C# 2008 Express

INTRODUCTION TO VISUAL BASIC 2010

Tutorial 2 - Welcome Application Introducing, the Visual Studio.NET IDE

Using Visual Basic Studio 2008

Introduction to the Visual Studio.NET Integrated Development Environment IDE. CSC 211 Intermediate Programming

Computer Science 110. NOTES: module 8

Lectora Video Editor Information Center

Lectora Audio Editor Information Center

Visual C# Program: Temperature Conversion Program

Visual C# Program: Resistor Sizing Calculator

GUI Design and Event- Driven Programming

2 USING VB.NET TO CREATE A FIRST SOLUTION

Welcome Application. Introducing the Visual Studio.NET IDE. Objectives. Outline

Outline. Debugging. In Class Exercise Solution. Review If Else If. Immediate Program Errors. Function Test Example

The following instructions cover how to edit an existing report in IBM Cognos Analytics.

Drawing an Integrated Circuit Chip

Getting started 7. Setting properties 23

Introduction to Programming. Creating a Visual Basic Application

Getting started 7. Setting properties 23

Introduction to the Visual Studio 2005

Skill Area 336 Explain Essential Programming Concept. Programming Language 2 (PL2)

About this tutorial. The Lianja App Development process

SEE5A/ Visual Basic Unit : I - V

SYLLABUS B.Com (Computer) VI SEM Subject Visual Basic Unit I

Working with PDF s. To open a recent file on the Start screen, double click on the file name.

Introductionto the Visual Basic Express 2008 IDE

SPARK. User Manual Ver ITLAQ Technologies

Answer: C. 7. In window we can write code A. Immediate window B. Locals window C. Code editor window D. None of these. Answer: C

FrontPage Help Center. Topic: FrontPage Basics

Las Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name:

Microsoft Visual Basic 2005: Reloaded

Program and Graphical User Interface Design

Part I. Integrated Development Environment. Chapter 2: The Solution Explorer, Toolbox, and Properties. Chapter 3: Options and Customizations

MockupScreens - User Guide

GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4

COPYRIGHTED MATERIAL. Visual Basic: The Language. Part 1

Standard Windows Keyboard Layout & Keyboard Shortcuts

LESSON A. The Splash Screen Application

Visual C# Program: Simple Game 3

User Guide. Web Intelligence Rich Client. Business Objects 4.1

Dive Into Visual C# 2010 Express

Start Menu Log off Turn Off Computer Run Search Help and Support

The figure below shows the Dreamweaver Interface.

Dell Canvas Layout. Version 1.0 User s Guide

Unit Microsoft Word. Microsoft Word is the word processor included in Office. Word is one of the most popular word processors.

UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0

CST242 Windows Forms with C# Page 1

Microsoft Faculty Tutorial

Oracle General Navigation Overview

Introduction. Getting Started. Selecting a Template. 1 of 1

Management Reports Centre. User Guide. Emmanuel Amekuedi

Version: Copyright World Programming Limited

Microsoft Word 2010: Word Advanced

Window (further define the behaviour of objects)

HMI. Software release 4.21

WPS Workbench. user guide. "To help guide you through using the WPS user interface (Workbench) to create, edit and run programs"

Using Safari on the imac

Getting Started with Access

set in Options). Returns the cursor to its position prior to the Correct command.

SAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE

EDITOR GUIDE. Button Functions:...2 Inserting Text...4 Inserting Pictures...4 Inserting Tables...8 Inserting Styles...9

1 Ctrl + X Cut the selected item. 2 Ctrl + C (or Ctrl + Insert) Copy the selected item. 3 Ctrl + V (or Shift + Insert) Paste the selected item

Gloucester County Library System. Microsoft 2010 PowerPoint

Starting Visual Studio 2005

Chapter 12: Using Controls

Microsoft PowerPoint 2007 Beginning

User Guide. Product Design. Version 2.2.2

Disclaimer. Trademarks. Liability

WORKSPACE ADDITIONAL TOPICS PC

Introduction VBA for AutoCAD (Mini Guide)

Studio2012.aspx

1 Using the NetBeans IDE

At the shell prompt, enter idlde

Coding Faster: Getting More Productive with Microsoft Visual

Step-by. A Very Warm Welcome to the Exciting World of Computers. Let s get Started It s easy with my Step- Instructions

Extended Brilliance Workspace v3.5 Report Template Editor

Excel Level 1

A Quick Tour GETTING STARTED WHAT S IN THIS CHAPTER?

IS2000. Administrative Operator s Guide

Intro to MS Visual C++ Debugging

USER MANUAL. Infoshare Web Conferencing

PowerPoint Spring 2002

TECHNOLOGY COMPETENCY ASSESSMENT MODULE Microsoft Access

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB

VBA Foundations, Part 7

Appendix J: Using Shortcut Keys and Shortcut Menus

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box.

1 THE PNP BASIC COMPUTER ESSENTIALS e-learning (MS Powerpoint 2007)

UNIT 3 ADDITIONAL CONTROLS AND MENUS OF WINDOWS

Specification Manager

Skill Area 336 Explain Essential Programming Concept. Programming Language 2 (PL2)

Promethean Board. Guide to Basics

Getting Started Guide

Functional Skills. bksb Resources for ICT Functional Skills. West Nottinghamshire College

2 Getting Started. Getting Started (v1.8.6) 3/5/2007

Introduction to Moodle: Creating & Sharing Content

Computer Shortcut Keys

Enterprise Architect. User Guide Series. Tutorial. Author: Sparx Systems. Date: 26/07/2018. Version: 1.0 CREATED WITH

User Guide Product Design Version 1.7

Lecture 1 Introduction Phil Smith

Transcription:

PROGRAMMING LANGUAGE 2 (SPM3112) INTRODUCTION TO VISUAL BASIC NOOR AZEAN ATAN MULTIMEDIA EDUCATIONAL DEPARTMENT UNIVERSITI TEKNOLOGI MALAYSIA

Topics Visual Basic Components Basic Operation Screen Size File Properties Forms Code Editor Running project 2

GETTING TO KNOW THE ENVIRONMENTS Introduction VB environment or VB s Integrated Development Environment (IDE) programmer create, run & test VB projects. IDE manages projects through the addition of objects & procedures to compiling & packaging the completed applications. Contains 7 essential components 1. Form window 2. Properties window 3. Code Window 4. Form layout window 5. Project window 6. Toolbar and Menu Bar 7. Toolbox 3

GETTING TO KNOW THE ENVIRONMENTS Toolbar & menu bar Project Explorer Properties Window Toolbox Form Window Form Layout Window Visual Basic Integrated Development Environments 4

GETTING TO KNOW THE ENVIRONMENTS Code Window Visual Basic Integrated Development Environments 5

GETTING TO KNOW THE ENVIRONMENTS Basic Operations Before embarking VB project, you need to become fluent with the VB basic operations (i.e. open, close & save project). How to create new project? By creating New Project? What next??? But why must standard exe? any specific reason?... How to close VB project? Remove project or exit? How to save VB project file? Save project?, save project as? Or save form? How to re open project file? 6

GETTING TO KNOW THE ENVIRONMENTS Screen Size VB screen size? Full screen? Minimise? Maximise? 640 x 480? 800 x 600? 1024 x 768?? How to change screen size by using pixels? How to make black full screen? Why we need black full screen in VB project? 7

GETTING TO KNOW THE ENVIRONMENTS File Properties Start up position Center screen? What else? Form Layout? Title bar How to change default title Form1? No title bar? What else? Menu bar How can we create it? Background color backcolor? 8

VISUAL BASIC COMPONENTS Form Form represents a project s window interface referred GUI. Use to display information to user, & to hold controls allow the user to interact with the program. Form s default bg colour is grey & one project can contains several forms. 9

Form Can we create more than one form?? VISUAL BASIC COMPONENTS Can we apply different background color in VB project? If VB project have three forms, how to run project from form 2? 10

VISUAL BASIC COMPONENTS Code Editor What is the function of code editor? For writing code??? How to change mode from code to design? Double click objects can display code editor? How to choose objects and events from code editor 11

Running Program How to run VB projects? How many mode in VB? What is break mode? VISUAL BASIC COMPONENTS Can we edit or correct program in break mode? Whatcanwedoinbreakmode? 12

DETAIL IN VISUAL BASIC ENVIRONMENT

VISUAL BASIC ENVIRONMENT Form Window 14

VISUAL BASIC ENVIRONMENT Form Form represents a project s window interface referred as : Graphical User Interface (GUI). Use to display information to the user, hold controls that allow the user to interact with the program. Form s default background = grey one program can contains several forms form has properties & can be populated with objects 15

VISUAL BASIC ENVIRONMENT Form 16

VISUAL BASIC ENVIRONMENT ProjectExplorer (a.k.a aprojectwindow) Contains: project files, view code button, view object button and toggle folder button. All files arranged in a tree structure fashion can expand or collapse the explorer clicking plus & the minus signs. use the Project window activate any of the files that you want. 17

VISUAL BASIC ENVIRONMENT Project Window 18

VISUAL BASIC ENVIRONMENT Code View Object/Design View List of files 19

VISUAL BASIC ENVIRONMENT Code Window (a.k.a Code Editor) Displays a window for writing VB code. Designer View (a.k.a Object View) Displays the form. 20

VISUAL BASIC ENVIRONMENT Code Window 21

VISUAL BASIC ENVIRONMENT Designer View 22

Toolbox VISUAL BASIC ENVIRONMENT Contains a set of icons, each represents control object @ control. use to develop VB applications. VB s controls that displayed in the toolbox are: PictureBox TextBox Label Frame CommandButton CheckBox OptionBox FileListBox ComboBox ListBox H&V ScrollBar Shape Image Data Line Timer DriverListBox FolderListBox OLE * Can add more controls at Project > Components. 23

VISUAL BASIC ENVIRONMENT Several controls from professional edition 24

THE COMMAND CONTROL command control @ button is one of the most important tools in toolbox. Double clicking command button icon will install a command button on the working form. Command Button 25

THE COMMAND CONTROL default command buttons are : Command1, Command2, etc. Command button can be moved @ changed in size using the mouse. Each command button has several properties button s appearance & behaviour. The mostimportantproperties properties are : name & caption name programmer can refer the button in VB code. caption a user will see on the button. 26

THE COMMAND CONTROL Two important properties 27

THE COMMAND CONTROL Highlighting g ga Property When highlight property its definition appears in the properties window. Explain the function of caption 28

THE COMMAND CONTROL Names and Captions Clicking name property will allow user to give a new name. Changing gthe caption to Stop gives the user an idea as to the button s function. 29

VISUAL BASIC ENVIRONMENT Properties Window Every object in Visual Basic (including the form) has its own set of properties. properties are attribute values of an object eg. color, size, position and appearance. Properties are listed either alphabetically or categorically Alphabetic list the properties in alphabetical order categorized list properties by categories. 30

VISUAL BASIC ENVIRONMENT Name of control Type of control Selected property description

VISUAL BASIC ENVIRONMENT Form Layout Window Specifies a form s position on the screen at runtime. 32

ToolBar and MenuBar VISUAL BASIC ENVIRONMENT Commands for developing, maintaining & executing VB s application. ToolBar uses icons to represent command MenuBar requires user to select appropriate choices from the menu list. Object Add Menu browser Form Editor Find Start Properties Data view Redo End Window window Toolbox Undo Add Standard Open Paste Break Form Visual EXE Project Project Project layout componen Explorer window manager 33

Project File.VBP Form Files.FRM Modules.BAS Custom Controls.VBX VISUAL BASIC ENVIRONMENT Structure of Visual Basic Program Files 34

ENTERING EVENTS CODE Double clicking on the button causes the Code window to open. End command terminates the VB program. You can also use unload me to terminate the VB program. 35

THE PROGRAM EDITOR Visual Basic (VB) supports a text editor (not a word processor) The editor is one of two sub windows that appears in the Workspace & Forms window. 36

ENTERING THE EDITOR editor is usually entered by double clicking on control in the workspace. The result code window which opens with the subroutine @ procedure 37

ACCESSING PROPERTY To access any controls properties p write dot after control name. list of known properties be displayed. 38

AUTOMATIC CORRECT cmdthingie.cap= start (no ( capitals, only part of the word caption, no spaces at all and no closing quote.) The editor will correct or complete the code. 39

AUTOMATIC CHECK any line code possesses syntax error the line turned red, a notice box will be posted as soon as the key or the cursor moved to a different line. 40

AUTOMATIC CHECK When no space provided after braces ( & ) the editor will automatically fixed it. 41

AUTOMATIC CHECK The editor not have provided any help if there is no existing data on specific object. Syntactical error will be shown. 42

RUNNING A PROGRAM Clicking the start tool begins the program. The break tool pauses a program in mid execution. The end tool terminates a program. 43