Programming with visual Basic:

Size: px
Start display at page:

Download "Programming with visual Basic:"

Transcription

1 Programming with visual Basic: 1-Introdution to Visual Basics 2-Forms and Control tools. 3-Project explorer, properties and events. 4-make project, save it and its applications. 5- Files projects and exercises. 6- Dialogue boxes message boxes. 7-Basic elements for visual basic statements, Variables, assignment statements. 8-General view on assignment statement, constants and operations. 9-Adding astringe of variable. 10-Control statements and If then statements. 11-If-hen-els statement. 12-Select statement. 13-For-next statement. 14-Condition loop. 15-Nested-loop. 16-Seguences.

2 Microsoft Visual Basic 6.0

3 Basic Beginning All purpose Symbolic Instruction Code Windows VB Dos graphical VB user interface Properties Events VB Objects Actions Start>Programs>Microsoft Visual Studio 6.0>Microsoft Visual Basic 6.0 VB

4 a b c f d e Menu bar g a Toolbox Controls Toolbar c b Pointer Picture box (Label) Text Box Frame Command Button Check Box Option Button

5 Drop- Combo Box Down list List Box Horizontal Scrollbar Vertical Scrollbar Timer Drive List Box Dir List Box File List Box Shape Line Image Data OLE Form Window Stretch d object Properties Window Project Explorer Window e Form Layout Window f Private sub Code Code Window g

6 End sub VB objects toolbox design

7 Project1-Microsoft Visual Basic (design) object Code Project1-Form1 (Code) Start End Form Run Run Run Save Save File as File Save Project save save Project as VB Label

8 caption backcolor forecolor "اصنل"= Labelno.caption (رمق) QBcolor = Labelno.backcolor (رمق) QBcolor = Labelno.forecolor Fontsize (رمق)= Labelno.fontsize رمق = Labelno.fontsize or Label1 label caption label size Font

9 Text box control Text backcolor forecolor "اصنل"= textno.text (رمق) QBcolor = textno.backcolor (رمق) QBcolor = textno.forecolor Multiline Multiline True Enabled text Multiline False اعفل textno.enabled=true ریغ اعفل textno.enabled=false text delete welcome to visual basic world text1 text form textbox welcome to visual basic world true false text1 multiline Command Button

10 caption Style backcolor "اصنل"= commandno.caption 1-Graphical 0-Standard (رمق) QBcolor = commandno.backcolor style 1-Graphical name label form label Label Comma label1 caption form label caption form command button name command1 Private Sub Command1_Click() Label1.Caption = "Ahmad" command1 form Calculator

11 form VB Form object form name "الامس اولطملب"= formno.caption caption (رمق) formno.backcolor=qbcolor backcolor يمام( 0-15 ) (رمق) formno.forecolor=qbcolor forecolor (0-15) Shape shape backstyle backcolor bordercolor 0-rectangle 1-square 2-oval 3-circle 0-trancsparence 1-opaque shape1 shape shape1 shape 3- circle

12 caption label1 circle label1 Sha Lab :design stage List box Listno list show label form VB form hide hide show display form2 Form1 Label1: caption=" " Command1: caption="show"

13 Command2: caption="hide" Label1 Command1 Command2 form2 Option Button Caption, Font, Enabled, BackColor and visible click Command Button red, blue, green form option1:caption green option2: caption blue option3: caption red green option2 option1 caption

14 qbcolor vb Private Sub Option1_Click() Form1.BackColor = vbgreen Private Sub Option2_Click() Form1.BackColor = vbblue Private Sub Option3_Click() Form1.BackColor = vbred Check Box Caption, Font, Enabled, BackColor, Forecolor, value and visible Text Box Text1 Text Check1 caption Bold Check2 caption Italic Check3 caption underline Text1 Check1 Check2 Check3 text Private Sub Check1_Click() Text1.FontBold = Check1.Value Private Sub Check2_Click() Text1.FontItalic = Check2.Value Private Sub Check3_Click() Text1.FontUnderline = Check3.Value

15 Timer Interval enabled true/false interval timer timer1 interval timer caption label 1000 label1 Label Timer Private Sub Timer1_Timer() Label1.Caption = Time label1 time Message Box Input-Output Boxes Input Box Msgbox Msgbox "Message", Symbol, "title" Message box Msgbox

16 vbcritical 16 vbquestion 32 vbexclamation 48 vbinformation 64 Commands Commands Vbokonly 0 Ok Vbokcancel 1 Ok, Cancel vbabortretryignor 2 Abort, Retry, Ignore vbyesnocancel 3 Yes, No, Cancel vbyesno 4 Yes, No vbretrycancel 5 Retry, Cancel MsgBox "please close your program", 16, "Error" or MsgBox "please close your program", vbcritical, "Error"

17 Input Box Message Box X = Inputbox ("prompt","title") ok Prompt caption Title X inputbox x form Private Sub Form_Load() X=Inputbox("enter value of x", "calculation") enter value of x calculation x

18 Variables) Dim As true or false Integer Long Single Double String Boolean Date Time Constant Const = π. Const π.

19 assignment statement Variable name = expression Operation ) Operation Code) Mod AND, OR 3(x+4y) 3*(x+4*y) 2 X 4/2 X^2 4 / 2 : Val ( ) :Cstr( ) CInt ( )

20 Input textbox inputbox output textbox label message box print form caption form Command1 caption + Command2 Caption - Label1 Caption Caption text Label2 text1, text2 Dim x, y, z as integer Private sub command1_click () X=val(text1.text) Y=val(text2.text) Z=x + y Msgbox(" ="&z) End sub Private sub command2_click () X=val(text1.text) Y=val(text2.text) Z=x - y Msgbox(" ="&z) End sub

21 ,"2007","100$","name" (string ) Dim As String Length Len ) Form1 Caption String length Command1 caption Click here Label1 Caption Length= Text1 Text Dim s As String Private Sub Command1_Click() s = InputBox("inter string") L = Len(s) Text1.Text = CStr(L) End sub abs(x) sqr(x) sin(x), cos(x) tan(x) x sin,cos,tan

22 print command1 text1, text2, text3 print run caption Dim a, b, c, av As single Private sub command1_click () a=val (text1.text) b=val(text2.text) c =val(text3.text) av=(a+b+c) / 3 Print "av=";av End sub input box label1, label2 run

23 conditional statements if statement select case if statement <, >, <=, >=, < >, =, and, or if if If..Then If condition then statement pass Dim x as integer Private sub command1_click() X= cint(text1.text) If x>= 50 then text2.text= "pass" End sub If block If condition then End if

24 pass Dim x as integer Private sub command1_click() X= cint(text1.text) If x>= 50 then text2.text= "pass" text2.fontsize=18 end if End sub If.. Then.. Else If condition then Else End if Dim x As Integer Private Sub command1_click() x = CInt(Text1.Text) If x >= 50 Then Text2.Text = "pass" Else Text2.Text = "fail" End If If.. then.. Elseif..Else If condition then Elseif condition then

25 Else End if Dim x As String Private Sub command1_click() x = text1.text If x = "Muhammad" Then MsgBox "hello, Muhammad" ElseIf x = "hasan" Then MsgBox "hello,hasan" Else MsgBox "hello, guest" End If If condition then If condition then Else Elseif Else End if option button nested if illegal division operation If Dim a, b, c As Single Private Sub command1_click() a = Val(Text1(0).Text) b = Val(Text2.Text) If Option1.Value Then c=a*b Text3.Text = CStr(c) Else

26 If b <> 0 Then Text3.Text = CStr(c) Else Text3.Text = "illegal division operation" End If End If Select Statement Select case variables Case value1 Case value2... Case else End select form Dim x As Integer Private Sub Command1_Click() x = CInt(Text1.Text) Select Case x Case 1 MsgBox ("Sunday") Case 2 MsgBox ("Monday") Case 3 MsgBox ("Tuesday")

27 Case 4 MsgBox ("Thursday") Case 5 MsgBox ("Wednesday") Case 6 MsgBox ("Friday") Case 7 MsgBox ("Saturday") End Select loop statement visual basic counter loop for next For variable = start value to end value step step value Next variable Dim i as integer Private Sub Command1_Click () For i = 1 To 5 Print "hello" Next i hello Conditional Loop Do while Do until Do while Do Do Do while Do while Loop

28 Do while condition Loop do while Dim i as integer Private Sub Command1_Click () i=1 Do while i <= 5 Print "hello"; i i=i+1 Loop hello Do until Do until Loop Do until condition Loop Dim i as integer Private Sub Command1_Click () i=1 Do Print "hello"; i i=i+1 Loop until i > 5 hello Exit Exit for Exit Do For next Do while

29 s=1+x+x 2 +x 3 + +x n x Dim I, n, sum as integer Dim x,s as Double Private Sub command1_click () sum = 1 n=cint(text1.text) x=val(text2.text) For i = 1 To n Sum = sum +x^i Next i Text3.text=cstr(sum) nested for For i = 1 To n For j = 1 To m Next j Next i Dim I, j As Integer Private Sub command1_click() For I = 1 To 10 For j = 1 To 10 p=i*j Print I; "*"; j; "="; p, Next j Print Next I

30 label y x x x y=-x Y=x check box option button 9-10 A 7-8 B 5-6 C 0-4 D

An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is

An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is InputBox( ) Function An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is A = InputBox ( Question or Phrase, Window Title, ) Example1: Integer:

More information

The Control Properties

The Control Properties The Control Properties Figure Before writing an event procedure for the control to response to a user's input, you have to set certain properties for the control to determine its appearance and how it

More information

2Practicals Visual Basic 6.0

2Practicals Visual Basic 6.0 2Practicals Visual Basic 6.0 Practical 1: 1. Navigation of Visual Basic Integrated Development Environment The Visual Basic IDE is made up of a number of components Menu Bar Tool Bar Project Explorer Properties

More information

Understanding the MsgBox command in Visual Basic

Understanding the MsgBox command in Visual Basic Understanding the MsgBox command in Visual Basic This VB2008 tutorial explains how to use the MsgBox function in Visual Basic. This also works for VBS MsgBox. The MsgBox function displays a message in

More information

NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY

NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY UNESCO-NIGERIA TECHNICAL & VOCATIONAL EDUCATION REVITALISATION PROJECT-PHASE II NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY OOBASIC/VISUAL BASIC PROGRAMMING COURSE CODE: COM 211 YEAR I SEMESTER II PRACTICAL

More information

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

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB Visual Programming 1. What is Visual Basic? Visual Basic is a powerful application development toolkit developed by John Kemeny and Thomas Kurtz. It is a Microsoft Windows Programming language. Visual

More information

Visual Basic. The Integrated Development Environment. Menu Bar

Visual Basic. The Integrated Development Environment. Menu Bar Visual Basic Visual Basic is initiated by using the Programs option > Microsoft Visual Basic 6.0 > Visual Basic 6.0. Clicking the Visual Basic icon, we can view a copyright screen enlisting the details

More information

Visual Basic 6 Lecture 7. The List Box:

Visual Basic 6 Lecture 7. The List Box: The List Box: The function of the List Box is to present a list of items where the user can click and select the items from the list or we can use the List Box control as a simple memory to save data.

More information

Programming Concepts and Skills. Arrays continued and Functions

Programming Concepts and Skills. Arrays continued and Functions Programming Concepts and Skills Arrays continued and Functions Fixed-Size vs. Dynamic Arrays A fixed-size array has a limited number of spots you can place information in. Dim strcdrack(0 to 2) As String

More information

Excel & Visual Basic for Applications (VBA)

Excel & Visual Basic for Applications (VBA) Class meeting #18 Monday, Oct. 26 th GEEN 1300 Introduction to Engineering Computing Excel & Visual Basic for Applications (VBA) user interfaces o on-sheet buttons o InputBox and MsgBox functions o userforms

More information

Start Visual Basic. Session 1. The User Interface Form (I/II) The Visual Basic Programming Environment. The Tool Box (I/II)

Start Visual Basic. Session 1. The User Interface Form (I/II) The Visual Basic Programming Environment. The Tool Box (I/II) Session 1 Start Visual Basic Use the Visual Basic programming environment Understand Essential Visual Basic menu commands and programming procedure Change Property setting Use Online Help and Exit Visual

More information

variables programming statements

variables programming statements 1 VB PROGRAMMERS GUIDE LESSON 1 File: VbGuideL1.doc Date Started: May 24, 2002 Last Update: Dec 27, 2002 ISBN: 0-9730824-9-6 Version: 0.0 INTRODUCTION TO VB PROGRAMMING VB stands for Visual Basic. Visual

More information

Control Properties. Example: Program to change background color

Control Properties. Example: Program to change background color Control Properties Before writing an event procedure for the control to response to an event, you have to set certain properties for the control to determine its appearance and how will it work with the

More information

MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION

MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION Lesson 1 - Recording Macros Excel 2000: Level 5 (VBA Programming) Student Edition LESSON 1 - RECORDING MACROS... 4 Working with Visual Basic Applications...

More information

VBA. VBA at a glance. Lecture 61

VBA. VBA at a glance. Lecture 61 VBA VBA at a glance Lecture 61 1 Activating VBA within SOLIDWORKS Lecture 6 2 VBA Sub main() Function Declaration Dim A, B, C, D, E As Double Dim Message, Title, Default Message = "A : " ' Set prompt.

More information

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples:

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples: VBA program units: Subroutines and Functions Subs: a chunk of VBA code that can be executed by running it from Excel, from the VBE, or by being called by another VBA subprogram can be created with the

More information

IFA/QFN VBA Tutorial Notes prepared by Keith Wong

IFA/QFN VBA Tutorial Notes prepared by Keith Wong Chapter 2: Basic Visual Basic programming 2-1: What is Visual Basic IFA/QFN VBA Tutorial Notes prepared by Keith Wong BASIC is an acronym for Beginner's All-purpose Symbolic Instruction Code. It is a type

More information

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

SYLLABUS B.Com (Computer) VI SEM Subject Visual Basic Unit I SYLLABUS B.Com (Computer) VI SEM Subject Visual Basic Unit I UNIT I UNIT II UNIT III UNIT IV UNIT V Introduction to Visual Basic: Introduction Graphics User Interface (GUI), Programming Language (Procedural,

More information

Angel International School - Manipay 1 st Term Examination November, 2015

Angel International School - Manipay 1 st Term Examination November, 2015 Grade 10 Angel International School - Manipay 1 st Term Examination November, 2015 Information & Communication Technology Duration: 3.00 Hours Part 1 Choose the appropriate answer 1) Find the correct type

More information

Contents Introduction Getting Started Visual Basic Form Configuration Entering the VB Code

Contents Introduction Getting Started Visual Basic Form Configuration Entering the VB Code Your comments and suggestions on the operation of this software are welcome. Please address them to: ICONICS 100 Foxborough Blvd. Foxborough, MA 02035 Tel: 508-543-8600 Fax: 508-543-1503 E-mail: support@iconics.com

More information

Angel International School - Manipay 1 st Term Examination November, 2015

Angel International School - Manipay 1 st Term Examination November, 2015 Angel International School - Manipay 1 st Term Examination November, 2015 Information & Communication Technology Grade 11A & C Duration: 3.00 Hours Part 1 Choose the most appropriate answer. 1) Find the

More information

Lab Manual Visual Basic 6.0

Lab Manual Visual Basic 6.0 Lab Manual Visual Basic 6.0 What is Visual Basic? VISUAL BASIC is a high level programming language evolved from the earlier DOS version called BASIC. BASIC means Beginners' All-purpose Symbolic Instruction

More information

GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4

GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4 GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4 Subject Name VISUAL BASIC Sr.No Course content 1. 1. Introduction to Visual Basic 1.1. Programming Languages 1.1.1. Procedural,

More information

CS130/230 Lecture 12 Advanced Forms and Visual Basic for Applications

CS130/230 Lecture 12 Advanced Forms and Visual Basic for Applications CS130/230 Lecture 12 Advanced Forms and Visual Basic for Applications Friday, January 23, 2004 We are going to continue using the vending machine example to illustrate some more of Access properties. Advanced

More information

VISUAL BASIC For Engineers & Scientists. Shahab D. Mohaghegh, Ph.D. Professor Petroleum & Natural Gas Engineering West Virginia University

VISUAL BASIC For Engineers & Scientists. Shahab D. Mohaghegh, Ph.D. Professor Petroleum & Natural Gas Engineering West Virginia University VISUAL BASIC For Engineers & Scientists Shahab D. Mohaghegh, Ph.D. Professor Petroleum & Natural Gas Engineering West Virginia University March 1997 TABLE OF CONTENTS Chapter 1: Problem Solving with Visual

More information

Visual Basic 1

Visual Basic 1 Visual Basic 1 www.ashagroup.org fiz; fo kffkz;ksa] ;s uksv~l vki lcdh lgk;rk ds fy, cuk;s x;s gsaa ;s uksv~l ljy Hkk kk esa cuk;s x;s gsaa bu uksv~l dks i

More information

Computer Science 110. NOTES: module 8

Computer Science 110. NOTES: module 8 Computer Science 110 NAME: NOTES: module 8 Introducing Objects As we have seen, when a Visual Basic application runs, it displays a screen that is similar to the Windows-style screens. When we create a

More information

C:\MasterPageWeb\HAPR\docu\HAPR_VB6_version15sept06.rtf 19/10/08. HARP_VB projet en VB6

C:\MasterPageWeb\HAPR\docu\HAPR_VB6_version15sept06.rtf 19/10/08. HARP_VB projet en VB6 HARP_VB projet en VB6 Option Explicit Dim Value As Integer Dim i As Integer Dim il As Long Dim LL, L1S, L250µS, L500µS, L1mS, L2mS, L5mS, L10mS As Single Dim offsetdepart As Long Dim police(256, 8) As

More information

Visual Basic.NET. 1. Which language is not a true object-oriented programming language?

Visual Basic.NET. 1. Which language is not a true object-oriented programming language? Visual Basic.NET Objective Type Questions 1. Which language is not a true object-oriented programming language? a.) VB.NET b.) VB 6 c.) C++ d.) Java Answer: b 2. A GUI: a.) uses buttons, menus, and icons.

More information

Visual Basic Tutorial (Lesson 2)

Visual Basic Tutorial (Lesson 2) Visual Basic Tutorial (Lesson 2) Hopefully you will learn this during lesson 2. : Know what an Event is. Determine what Events a control can have Write code for one or more Events. Using optionbuttons

More information

University of Technology Laser & Optoelectronics Engineering Department Visual basic Lab.

University of Technology Laser & Optoelectronics Engineering Department Visual basic Lab. DriveListBox Control, DirListBox Control, and FileListBox Control CommonDialog Control 1 2 DriveListBox Control disk drive Important Properties object.drive [= drive] Drive Floppy disks "a:" or "b:", and

More information

Type Storage Range of Values

Type Storage Range of Values University of Misan College of Engineering Department of Civil Engineering Course Title: Visual Basic Second Stage Fourth Lecture Visual Basic Data There are many types of data that we come across in our

More information

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

Las Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name: Las Vegas, Nevada, December 3 6, 2002 Speaker Name: Kevin Vandecar Course Title: Introduction to Visual Basic Course ID: CP11-3 Session Overview: Introduction to Visual Basic programming is a beginning

More information

MICROSOFT EXCEL VISUAL BASIC FOR APPLICATIONS INTERMEDIATE

MICROSOFT EXCEL VISUAL BASIC FOR APPLICATIONS INTERMEDIATE MICROSOFT EXCEL VISUAL BASIC FOR APPLICATIONS INTERMEDIATE NOTE Unless otherwise stated, screenshots of dialog boxes and screens in this book were taken using Excel 2003 running on Window XP Professional.

More information

Function: function procedures and sub procedures share the same characteristics, with

Function: function procedures and sub procedures share the same characteristics, with Function: function procedures and sub procedures share the same characteristics, with one important difference- function procedures return a value (e.g., give a value back) to the caller, whereas sub procedures

More information

Visual Basic , ,. Caption Hello, On Off. * + +, -. 1-Arrow, , 2- Cross. - project1.vbp, 4-form1.frm.

Visual Basic , ,. Caption Hello, On Off. * + +, -. 1-Arrow, , 2- Cross. - project1.vbp, 4-form1.frm. Visual Basic 6.0 1.,. Caption Hello, On Off. * + +, -. 1-Arrow, + - 4 +, 2- Cross. - project1.vbp, 4-form1.frm...!"# 2/59 3...

More information

Chapter 1. Block Diagram. Text .. 1

Chapter 1. Block Diagram. Text .. 1 Chapter 1 ก Visual Basic Scilab ก ก Visual Basic Scilab ก ก (Temporary File) ก ก ก ก ก ก Visual Basic ก (Interface) ก Scilab Text File ก Visual Basic ก ก ก ก Block Diagram ก ก Visual Basic ก Scilab ก.sce

More information

Visual Basic ,

Visual Basic , Visual Basic 6.0..!"# !"# $#%$$"& ( ( 6.0) 2 $, -&, - 1.,. Caption Hello, On O ff. * + +, -. 1-Arrow, + - 4 +, 2- Cross. - project1.vbp, 4-form1.frm. 2/59 !"# $#%$$"& ( ( 6.0) 3 $, -&, - 3/59 !"# $#%$$"&

More information

Excel VBA Programming

Excel VBA Programming Exclusive Study Manual Excel VBA Programming Advanced Excel Study Notes (For Private Circulation Only Not For Sale) 7208669962 8976789830 (022 ) 28114695 www.laqshya.in info@laqshya.in Study Notes Excel

More information

Excel Macro Record and VBA Editor. Presented by Wayne Wilmeth

Excel Macro Record and VBA Editor. Presented by Wayne Wilmeth Excel Macro Record and VBA Editor Presented by Wayne Wilmeth 1 What Is a Macro? Automates Repetitive Tasks Written in Visual Basic for Applications (VBA) Code Macro Recorder VBA Editor (Alt + F11) 2 Executing

More information

ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration

ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 1 References & Info Chapra (Part 2 of ENGG1811 Text) Topic 21 (chapter

More information

VISUAL BASIC 6.0 OVERVIEW

VISUAL BASIC 6.0 OVERVIEW VISUAL BASIC 6.0 OVERVIEW GENERAL CONCEPTS Visual Basic is a visual programming language. You create forms and controls by drawing on the screen rather than by coding as in traditional languages. Visual

More information

HELP - VB TIPS. ANIMATE AN IMAGE BOX Insert a module. In this module, create a global variable: Global x

HELP - VB TIPS. ANIMATE AN IMAGE BOX Insert a module. In this module, create a global variable: Global x HELP - VB TIPS Load an image to an image box from a certain folder If you use this method, won t work on N:\ To load an image to a image control Image1.Picture = LoadPicture("H:\MyVBfolder\stop.gif") Load

More information

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

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box. Visual Basic Concepts Hello, Visual Basic See Also There are three main steps to creating an application in Visual Basic: 1. Create the interface. 2. Set properties. 3. Write code. To see how this is done,

More information

Visual C# Program: Simple Game 3

Visual C# Program: Simple Game 3 C h a p t e r 6C Visual C# Program: Simple Game 3 In this chapter, you will learn how to use the following Visual C# Application functions to World Class standards: Opening Visual C# Editor Beginning a

More information

Document Editor Basics

Document Editor Basics Document Editor Basics When you use the Document Editor option, either from ZP Toolbox or from the Output option drop-down box, you will be taken to the Report Designer Screen. While in this window, you

More information

Philadelphia University Faculty of Information Technology. Visual Programming

Philadelphia University Faculty of Information Technology. Visual Programming Philadelphia University Faculty of Information Technology Visual Programming Using C# -Work Sheets- Prepared by: Dareen Hamoudeh Eman Al Naji Work Sheet 1 Form, Buttons and labels Properties Changing properties

More information

Creating Macros David Giusto, Technical Services Specialist, Synergy Resources

Creating Macros David Giusto, Technical Services Specialist, Synergy Resources Creating Macros David Giusto, Technical Services Specialist, Synergy Resources Session Background Ever want to automate a repetitive function or have the system perform calculations that you may be doing

More information

( ) 1.,, Visual Basic,

( ) 1.,, Visual Basic, ( ) 1. Visual Basic 1 : ( 2012/2013) :. - : 4 : 12-14 10-12 2 http://www.institutzamatematika.com/index.ph p/kompjuterski_praktikum_2 3 2 / ( ) 4 90% 90% 10% 90%! 5 ? 6 "? : 7 # $? - ( 1= on 0= off ) -

More information

Overview About KBasic

Overview About KBasic Overview About KBasic The following chapter has been used from Wikipedia entry about BASIC and is licensed under the GNU Free Documentation License. Table of Contents Object-Oriented...2 Event-Driven...2

More information

I

I I II Disclaimer Excel VBA Made Easy is an independent publication and is not affiliated with, nor has it been authorized, sponsored, or otherwise approved by Microsoft Corporation. Trademarks Microsoft,

More information

Agenda. First Example 24/09/2009 INTRODUCTION TO VBA PROGRAMMING. First Example. The world s simplest calculator...

Agenda. First Example 24/09/2009 INTRODUCTION TO VBA PROGRAMMING. First Example. The world s simplest calculator... INTRODUCTION TO VBA PROGRAMMING LESSON2 dario.bonino@polito.it Agenda First Example Simple Calculator First Example The world s simplest calculator... 1 Simple Calculator We want to design and implement

More information

Visual Basic ,

Visual Basic , Visual Basic 6.0 1.,. Caption Hello, On O ff. * + +, -. 1-Arrow, + - 4 +, 2- Cross. - project1.vbp, 4-form1.frm...!"# 2/59 3...

More information

Unit 11.Introduction to Form and Report

Unit 11.Introduction to Form and Report Introduction to Form Unit 11.Introduction to Form and Report Introduction: Databases are made to be used. Access provides an easy way to enter data into Access database tables with forms. Forms can also

More information

M.C.A. (Sem.-II) Examination. Ma~' CCA-2003 : Building Client Server Application Using VB. Faculty Code: 003 Subject Code:

M.C.A. (Sem.-II) Examination. Ma~' CCA-2003 : Building Client Server Application Using VB. Faculty Code: 003 Subject Code: 1~'IIIf 003-007203 M.C.A. (Sem.-II) Examination Ma~' -2014 CCA-2003 : Building Client Server Application Using VB Faculty Code: 003 Subject Code: 007203 Time: 21/2 Hours] [Total Marks: 70 I. Answer the

More information

VBScript: Math Functions

VBScript: Math Functions C h a p t e r 3 VBScript: Math Functions In this chapter, you will learn how to use the following VBScript functions to World Class standards: 1. Writing Math Equations in VBScripts 2. Beginning a New

More information

Chapter 2.4: Common facilities of procedural languages

Chapter 2.4: Common facilities of procedural languages Chapter 2.4: Common facilities of procedural languages 2.4 (a) Understand and use assignment statements. Assignment An assignment is an instruction in a program that places a value into a specified variable.

More information

Universitas Sumatera Utara

Universitas Sumatera Utara Option Explicit DefLng A-Z '--------------------------------------------------------------------------------------------- #Const Test = False '---------------------------------------------------------------------------------------------

More information

3 IN THIS CHAPTER. Understanding Program Variables

3 IN THIS CHAPTER. Understanding Program Variables Understanding Program Variables Your VBA procedures often need to store temporary values for use in statements and calculations that come later in the code. For example, you might want to store values

More information

Dive Into Visual C# 2008 Express

Dive Into Visual C# 2008 Express 1 2 2 Dive Into Visual C# 2008 Express OBJECTIVES In this chapter you will learn: The basics of the Visual Studio Integrated Development Environment (IDE) that assists you in writing, running and debugging

More information

Microsoft Dynamics GP Modifier User s Guide

Microsoft Dynamics GP Modifier User s Guide Microsoft Dynamics GP 2010 Modifier User s Guide Copyright Copyright 2010 Microsoft Corporation. All rights reserved. Limitation of liability This document is provided as-is. Information and views expressed

More information

GUI Design and Event- Driven Programming

GUI Design and Event- Driven Programming 4349Book.fm Page 1 Friday, December 16, 2005 1:33 AM Part 1 GUI Design and Event- Driven Programming This Section: Chapter 1: Getting Started with Visual Basic 2005 Chapter 2: Visual Basic: The Language

More information

You will have mastered the material in this chapter when you can:

You will have mastered the material in this chapter when you can: CHAPTER 6 Loop Structures OBJECTIVES You will have mastered the material in this chapter when you can: Add a MenuStrip object Use the InputBox function Display data using the ListBox object Understand

More information

C H A P T E R T W E N T Y E I G H T. Create, close, and open a Web application. Add an image, text box, label, and button to a Web page

C H A P T E R T W E N T Y E I G H T. Create, close, and open a Web application. Add an image, text box, label, and button to a Web page 28 GETTING WEB-IFIED After studying Chapter 28, you should be able to: Create, close, and open a Web application View a Web page in a browser window and full screen view Add static text to a Web page Add

More information

ADVANCED ALGORITHMS TABLE OF CONTENTS

ADVANCED ALGORITHMS TABLE OF CONTENTS ADVANCED ALGORITHMS TABLE OF CONTENTS ADVANCED ALGORITHMS TABLE OF CONTENTS...1 SOLVING A LARGE PROBLEM BY SPLITTING IT INTO SEVERAL SMALLER SUB-PROBLEMS CASE STUDY: THE DOOMSDAY ALGORITHM... INTRODUCTION

More information

EMPLOYEE PAYROLL SYSTEM

EMPLOYEE PAYROLL SYSTEM EX.NO:1 DATE: EMPLOYEE PAYROLL SYSTEM AIM: To develop a Employee Payroll System using visual Basic. PROCEDURE: 1. Problem statement Software is to be designed for supporting a computerized employee payroll

More information

Contents. More Controls 51. Visual Basic 1. Introduction to. xiii. Modify the Project 30. Print the Project Documentation 35

Contents. More Controls 51. Visual Basic 1. Introduction to. xiii. Modify the Project 30. Print the Project Documentation 35 Contents Modify the Project 30 Introduction to Print the Project Documentation 35 Visual Basic 1 Sample Printout 36 Writing Windows Applications The Form Image 36 The Code 37 with Visual Basic 2 The Form

More information

Creating a Text Frame. Create a Table and Type Text. Pointer Tool Text Tool Table Tool Word Art Tool

Creating a Text Frame. Create a Table and Type Text. Pointer Tool Text Tool Table Tool Word Art Tool Pointer Tool Text Tool Table Tool Word Art Tool Picture Tool Clipart Tool Creating a Text Frame Select the Text Tool with the Pointer Tool. Position the mouse pointer where you want one corner of the text

More information

Before We Begin. Introduction to Computer Use II. Overview (1): Winter 2006 (Section M) CSE 1530 Winter Bill Kapralos.

Before We Begin. Introduction to Computer Use II. Overview (1): Winter 2006 (Section M) CSE 1530 Winter Bill Kapralos. Winter 2006 (Section M) Topic E: Subprograms Functions and Procedures Wednesday, March 8 2006 CSE 1530, Winter 2006, Overview (1): Before We Begin Some administrative details Some questions to consider

More information

Loops! Loops! Loops! Lecture 5 COP 3014 Fall September 25, 2017

Loops! Loops! Loops! Lecture 5 COP 3014 Fall September 25, 2017 Loops! Loops! Loops! Lecture 5 COP 3014 Fall 2017 September 25, 2017 Repetition Statements Repetition statements are called loops, and are used to repeat the same code mulitple times in succession. The

More information

NiceForm User Guide. English Edition. Rev Euro Plus d.o.o. & Niceware International LLC All rights reserved.

NiceForm User Guide. English Edition. Rev Euro Plus d.o.o. & Niceware International LLC All rights reserved. www.nicelabel.com, info@nicelabel.com English Edition Rev-0910 2009 Euro Plus d.o.o. & Niceware International LLC All rights reserved. www.nicelabel.com Head Office Euro Plus d.o.o. Ulica Lojzeta Hrovata

More information

COPYRIGHTED MATERIAL. Visual Basic: The Language. Part 1

COPYRIGHTED MATERIAL. Visual Basic: The Language. Part 1 Part 1 Visual Basic: The Language Chapter 1: Getting Started with Visual Basic 2010 Chapter 2: Handling Data Chapter 3: Visual Basic Programming Essentials COPYRIGHTED MATERIAL Chapter 1 Getting Started

More information

IS 320 Spring 96 Page 1 Exam 1. Please use your own paper to answer the following questions. Point values are shown in parentheses.

IS 320 Spring 96 Page 1 Exam 1. Please use your own paper to answer the following questions. Point values are shown in parentheses. IS 320 Spring 96 Page 1 Please use your own paper to answer the following questions. Point values are shown in parentheses. 1. (10) Consider the following segment of code: If txtansicode.text < "0" Or

More information

FIT 100. Lab 8: Writing and Running Your First Visual Basic Program Spring 2002

FIT 100. Lab 8: Writing and Running Your First Visual Basic Program Spring 2002 FIT 100 Lab 8: Writing and Running Your First Visual Basic Program Spring 2002 1. Create a New Project and Form... 1 2. Add Objects to the Form and Name Them... 3 3. Manipulate Object Properties... 3 4.

More information

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6)

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) AGENDA 3. Executing VBA

More information

Lookup Project. frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function:

Lookup Project. frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function: Lookup Project frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function: Help About, in a Message Box lookup.vbp programmed by C.Gribble Page 2 Code for

More information

Simplified Operating Instructions T105-C / T108-C / T106-C / T17B-C DISPLAYS DAY OR DAY BLOCK PROG 00:0000 PROG PROG ALWAYS OFF

Simplified Operating Instructions T105-C / T108-C / T106-C / T17B-C DISPLAYS DAY OR DAY BLOCK PROG 00:0000 PROG PROG ALWAYS OFF Button Operations Simplified Operating Instructions T105-C / T108-C / T106-C / T17B-C R - Reset (with pen or other pointed instrument). Y - Enters function setup. +/- Buttons to scroll through icons. Y

More information

Department of Computer and Mathematical Sciences. Lab 7: Selection

Department of Computer and Mathematical Sciences. Lab 7: Selection Unit 2: Visual Basic.NET, pages 1 of 11 Department of Computer and Mathematical Sciences CS 1408 Intro to Computer Science with Visual Basic.NET 7 Lab 7: Selection Objectives: The main objective of this

More information

LESSON A. The Splash Screen Application

LESSON A. The Splash Screen Application The Splash Screen Application LESSON A LESSON A After studying Lesson A, you should be able to: Start and customize Visual Studio 2010 or Visual Basic 2010 Express Create a Visual Basic 2010 Windows application

More information

Selection Statements. Chapter 4. Copyright 2013 Elsevier Inc. All rights reserved 1

Selection Statements. Chapter 4. Copyright 2013 Elsevier Inc. All rights reserved 1 Selection Statements Chapter 4 Copyright 2013 Elsevier Inc. All rights reserved 1 Recall Relational Expressions The relational operators in MATLAB are: > greater than < less than >= greater than or equals

More information

LAMPIRAN. Universitas Sumatera Utara

LAMPIRAN. Universitas Sumatera Utara 61 LAMPIRAN 61 Listing Program Form 1 ( Barang ) Dim CnSuzuya As ADODB.Connection Dim CommBar As ADODB.Command Dim rsbar As ADODB.Recordset Dim StrSql As String Dim psn As Byte Private Sub Form_Load()

More information

End User Guide. 2.1 Getting Started Toolbar Right-click Contextual Menu Navigation Panels... 2

End User Guide. 2.1 Getting Started Toolbar Right-click Contextual Menu Navigation Panels... 2 TABLE OF CONTENTS 1 OVERVIEW...1 2 WEB VIEWER DEMO ON DESKTOP...1 2.1 Getting Started... 1 2.1.1 Toolbar... 1 2.1.2 Right-click Contextual Menu... 2 2.1.3 Navigation Panels... 2 2.1.4 Floating Toolbar...

More information

2-26 Learn Visual Basic 6.0

2-26 Learn Visual Basic 6.0 2-26 Learn Visual Basic 6.0 cmdcompute Click Event: Private Sub cmdcompute_click() Dim Mean As Single Dim StdDev As Single txtinput.setfocus Make sure there are at least two values If NumValues < 2 Then

More information

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

SAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE SAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE Course Title: Introduction to Visual Basic Code No.: Semester: Three Program: Computer Programming Author: Willem de Bruyne

More information

Armstrong State University Engineering Studies MATLAB Marina Switch-Case Statements Primer

Armstrong State University Engineering Studies MATLAB Marina Switch-Case Statements Primer Armstrong State University Engineering Studies MATLAB Marina Switch-Case Statements Primer Prerequisites The Switch-Case Statements Primer assumes knowledge of the MATLAB IDE, MATLAB help, arithmetic operations,

More information

PROGRAM 1: SIMPLE CALCULATOR

PROGRAM 1: SIMPLE CALCULATOR PROGRAM 1: SIMPLE CALCULATOR Option Explicit Dim operand1 As Double, operand2 As Double Dim op1 As Double, op2 As Double Dim operator As String Dim cleardisplay As Boolean Private Sub Cmdclear_Click()

More information

Create a new document: Save your document regularly! The Big Picture: File>New

Create a new document: Save your document regularly! The Big Picture: File>New Create a new document: File>New 1. On the menu bar, click File, then New. (Note: From now on, this will be indicated using the following notation style: File>New.) 2. Type in the dimensions for the publication

More information

KODAK Software User s Guide. Software Version 9.0

KODAK Software User s Guide. Software Version 9.0 KODAK Create@Home Software User s Guide Software Version 9.0 Table of Contents 1 Welcome to KODAK Create@Home Software Features... 1-1 Supported File Formats... 1-1 System Requirements... 1-1 Software

More information

MgtOp 470 Business Modeling with Spreadsheets Sample Midterm Exam. 1. Spreadsheets are known as the of business analysis.

MgtOp 470 Business Modeling with Spreadsheets Sample Midterm Exam. 1. Spreadsheets are known as the of business analysis. Section 1 Multiple Choice MgtOp 470 Business Modeling with Spreadsheets Sample Midterm Exam 1. Spreadsheets are known as the of business analysis. A. German motor car B. Mexican jumping bean C. Swiss army

More information

KODAK Software User s Guide

KODAK Software User s Guide KODAK Create@Home Software User s Guide Table of Contents 1 Welcome to KODAK Create@Home Software Features... 1-1 Supported File Formats... 1-1 System Requirements... 1-1 Software Updates...1-2 Automatic

More information

UNIT 3 ADDITIONAL CONTROLS AND MENUS OF WINDOWS

UNIT 3 ADDITIONAL CONTROLS AND MENUS OF WINDOWS UNIT 3 ADDITIONAL CONTROLS AND MENUS OF WINDOWS 1 SYLLABUS 3.1 Working with other controls of toolbox : 3.1.1 Date Time Picker 3.1.2 List Box 3.1.2.1 Item collection 3.1.3 Combo Box 3.1.4 Picture Box 3.15

More information

1. Create your First VB.Net Program Hello World

1. Create your First VB.Net Program Hello World 1. Create your First VB.Net Program Hello World 1. Open Microsoft Visual Studio and start a new project by select File New Project. 2. Select Windows Forms Application and name it as HelloWorld. Copyright

More information

Using Visual Basic Studio 2008

Using Visual Basic Studio 2008 Using Visual Basic Studio 2008 Recall that object-oriented programming language is a programming language that allows the programmer to use objects to accomplish a program s goal. An object is anything

More information

Full file at https://fratstock.eu Programming in Visual Basic 2010

Full file at https://fratstock.eu Programming in Visual Basic 2010 OBJECTIVES: Chapter 2 User Interface Design Upon completion of this chapter, your students will be able to 1. Use text boxes, masked text boxes, rich text boxes, group boxes, check boxes, radio buttons,

More information

Visual Basic Visual Basic

Visual Basic Visual Basic 9-1 9-2 9-1.1 9-1.2 9-1.3 9-2.1 9-2.2 9-2.3 9-3 Visual Basic 9-3.1 Visual Basic 9-3.2 9-4 9-4.1 9-4.2 2 II 9-1 GoTo http://noi.stinfo.net/ xbqj/xbqj_12.htm structured programming 9-1 9-1 a goto b c goto

More information

Tutorials. Lesson 3 Work with Text

Tutorials. Lesson 3 Work with Text In this lesson you will learn how to: Add a border and shadow to the title. Add a block of freeform text. Customize freeform text. Tutorials Display dates with symbols. Annotate a symbol using symbol text.

More information

ACT! Calendar to Excel

ACT! Calendar to Excel Another efficient and affordable ACT! Add-On by ACT! Calendar to Excel v.6.0 for ACT! 2008 and up http://www.exponenciel.com ACT! Calendar to Excel 2 Table of content Purpose of the add-on... 3 Installation

More information

INTRODUCTION TO COMPUTER CONCEPTS CSIT 100 LAB: MICROSOFT POWERPOINT (Part 2)

INTRODUCTION TO COMPUTER CONCEPTS CSIT 100 LAB: MICROSOFT POWERPOINT (Part 2) INTRODUCTION TO COMPUTER CONCEPTS CSIT 100 LAB: MICROSOFT POWERPOINT (Part 2) Adding a Text Box 1. Select Insert on the menu bar and click on Text Box. Notice that the cursor changes shape. 2. Draw the

More information

END-TERM EXAMINATION

END-TERM EXAMINATION (Please Write your Exam Roll No. immediately) END-TERM EXAMINATION DECEMBER 2006 Exam. Roll No... Exam Series code: 100274DEC06200274 Paper Code : MCA-207 Subject: Front End Design Tools Time: 3 Hours

More information