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

Size: px
Start display at page:

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

Transcription

1 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 so on Fixed media "c: [volume id]" Network connections "x: \\server\share" Change DirListBox Control Important Properties object.path [= pathname] Path Change 1

2 FileListBox Control object.path [= pathname] Path Important Properties Path object.file [= pathname] object.pattern [= value] File1.Pattern="*.txt" File1.Pattern="*.com;*.bat" File Pattern Form_Load : Archive, Hidden, Normal, System object.archive [= boolean] object.hidden [= boolean] object.normal [= boolean] object.system [= boolean] Form_Load File1.Hidden= Click 2

3 Project properties Object Property Setting Form1 Form1 Label1 AutoSize BackStyle DriveListBox1 Drive1 DirListBox1 Dir1 FileListBox1 File1 Image1 CommandButton1 Poject code Stretch Private Sub Command1_Click() Image1.Picture = LoadPicture() Label1. = "" Label1 فزاغ يصبح الشزيط بحجم الكلمت شفاف يعكس لىن الخلفيت ورائه 0 Image1 لتأخذ الصىرة حجم االطار الذي يحىيها Command1 Delete Picture Private Sub Dir1_Change() File1.Path = Dir1.Path set file path Private Sub Drive1_Change() Dir1.Path = Drive1.Drive set directory path 3

4 Private Sub File1_Click() Path = File1.Path If Right$(Path, 1) <> "\" Then Path = Path + "\" Label1. = Path + File1.filename Image1.Picture = LoadPicture(Label1.) A=Path + File1.filename Image1.Picture = LoadPicture(A) Private Sub Form_Load() File1.Pattern = "*.bmp" CommonDialog Components Microsoft common dialog 5.0 Ctrl+T Components Project ToolBox ShowSave ShowPrinter ShowOpen ShowFont CommonDialog Control ShowHelp ShowColor Method ShowOpen ShowSave ShowColor ShowFont ShowPrinter ShowHelp Dialog Displayed Show Open Dialog Box Show Save As Dialog Box Show Color Dialog Box Show Font Dialog Box Show Print or Print Options Dialog Box Invokes the Windows Help Engine 4

5 Important Properties object.cancelerror [= boolean] The settings for boolean are: False Setting Description An error is generated. (Default) No error is generated. CancelError DialogTitle object.filter [= description1 filter1 description2 filter2...] CommonDialog1.Filter="Text (*.txt) *.txt Pictures (*.bmp;*.ico) *.bmp;*.ico" Filter Filter FilterIndex object.filterindex [= number] CommonDialog1.FilterIndex= MaxFileSize File FileTitle ShowColor Color ShowPrinter FromPage, ToPage object.frompage [= number] object.topage [= number] ShowPrinter Copy ShowFont ShowPrinter Max, Min object.min [= points] object.max [= points] object.min [= number ] object.max [= number ] 5

6 CommonDialog ShowColor ShowOpen Project properties Object Property Setting Form1 Form1 Label1 Label1 فزاغ AutoSize يصبح الشزيط بحجم الكلمت BackStyle شفاف يعكس لىن الخلفيت ورائه 0 CommonDialog1 CancelError cmd1 CommandButton1 Command1 Open CommandButton2 Command2 Image1 Stretch 6 Color Image1 لتأخذ الصىرة حجم االطار الذي يحىيها

7 Poject code Private Sub command1_click() On Error GoTo errorf2 cmd1.filename = "" cmd1.filter = "BMP Files (*.bmp) *.bmp" cmd1.filterindex = 0 cmd1.showopen On Error GoTo 0 dir Filter If Dir(cmd1.filename) = "" Then disable the error MsgBox "File not Exist", vbcritical + vbmsgboxright, "Error" Exit Sub End If Label1. = cmd1.filename Image1.Picture=LoadPicture(cmd1.filename) errorf2: Private Sub command2_click() On Error GoTo aa cmd1.showcolor On Error GoTo 0 Form1.BackColor = cmd1.color aa: 7

8 Sequential File Binary File Random File Sequential File Project properties Object Property Setting Form1 Form1 Sequential File Text Box1 Text MultiLine Text1 فزاغ ScrollBars 3 Both Text Box2 Text MultiLine ScrollBars CommandButton1 CommandButton2 Poject code Private Sub Command1_Click() filenum = FreeFile Open "example.txt" For Output As filenum Print #filenum, Text1.Text Close filenum Private Sub Command2_Click() filenum = FreeFile Open "example.txt" For Input As filenum Text2.Text = Input$(LOF(filenum) - 2, filenum) 8 Text2 فزاغ 3 Both Command1 Save Command2 Load "example.txt" "example.txt"

9 Close filenum CommonDialog Project properties Object Property Setting Form1 Form1 CommonDialog1 CancelError Cmd1 Image1 CommandButton1 CommandButton2 Poject code Stretch Picture Private Sub Command1_Click() On Error GoTo errof2 cmd1.filename = "" cmd1.filter = "Bmp Files (*.bmp) *.bmp" cmd1.filterindex = 0 cmd1.showopen On Error GoTo 0 If Dir(cmd1.filename) = "" Then MsgBox "File not exist", vbcritical, "Error" Exit Sub End If Image1.Picture = LoadPicture(cmd1.filename) errof2: Image1 Command1 Load Picture Command2 Delete Picture 9

10 Private Sub Command2_Click() Image1.Picture = LoadPicture() CommonDialog CommonDialog Project properties Object Property Setting Form1 Form1 CommonDialog1 CancelError Cmd1 TextBox1 Text MultiLine ScrollBars Text1 3 Both TextBox2 Text MultiLine ScrollBars Text2 3 Both CommandButton1 Command1 Save CommandButton2 Command2 Load Label1 Autosize Label1 Label2 Autosize Label2 Poject code Private Sub Command1_Click() On Error GoTo errof1 cmd1.filename = "" cmd1.filter = "Text Files (*.txt) *.txt" cmd1.filterindex = 0 cmd1.showsave On Error GoTo 0 If Dir(cmd1.filename) <> "" Then قا "Overwrite") y = MsgBox("Overwrite File", vbquestion + vbyesno, If y = vbno Then Exit Sub End If ف ي حال ة وجوده ساب save file Label1. = "Saved file name:" + cmd1.filename filenum = FreeFile Open cmd1.filename For Output As filenum Print #filenum, Text1.Text Close filenum 0

11 errof1: Private Sub Command2_Click() On Error GoTo errof2 cmd1.filename = "" cmd1.filter = "Text Files (*.txt) *.txt" cmd1.filterindex = 0 cmd1.showopen On Error GoTo 0 If Dir(cmd1.filename) = "" Then ف ي حال ة عدم وجوده "error" MsgBox "File not exist", vbcritical, Exit Sub End If Load file Label2. = "Loaded file name:" + cmd1.filename filenum = FreeFile Open cmd1.filename For Input As filenum Text2.Text = Input$(LOF(filenum) - 2, filenum) Close filenum Text2.Text = Text2.Text + "good bye" errof2: 1

12 2

Visual Basic

Visual Basic 12-1 12-2 12-3 12-1.1 12-1.2 12-2.1 12-2.2 12-3.1 12-3.2 12-4 12-5 12-4.1 12-4.2 12-5.1 12-5.2 140 II 12-1 data file 12-1.1 record field 4 12-1 4 12 141 12-1... 12-1.2 sequential file random file binary

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

Programming with visual Basic:

Programming with visual Basic: 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.

More information

GETTING STARTED WITH VBA

GETTING STARTED WITH VBA Split Your Windows Click & Retrieve Source CODE! Add a Splitter class to your application to give it a Windows 95 Explorer-style splitter bar. by Chris Barlow n the last few columns I ve looked at the

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

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

SEE5A/ Visual Basic Unit : I - V

SEE5A/ Visual Basic Unit : I - V SEE5A/ Visual Basic Unit : I - V 1 1 UNIT I : Syllabus Customizing a Form Writing Simple Programs Tool Box Creating Controls Name Property Command Button, Access Keys Image Controls, Text Boxes, Labels

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

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 , ,. 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

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

University of Technology Laser & Optoelectronics Engineering Department Visual basic Lab. LostFocus Resize System event

University of Technology Laser & Optoelectronics Engineering Department Visual basic Lab. LostFocus Resize System event Events Private Sub Form_Load() Load Close Unload Private Sub Form_Unload(Cancel As Integer) Cancel=True Cancel * Show Activate SetFocus Focus Deactivate SetFocus GotFocus CommandButton LostFocus Resize

More information

Universitas Sumatera Utara

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

More information

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

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 1. Visual Basic is a tool that allows you to develop application in A. Real time B. Graphical User Interface C. Menu Driven D. None Of These 2. IDE stands for.. A. Internet Development Environment B. Integrated

More information

UNIT 2 ADVANCED FEATURES OF VISUAL BASIC 6.0

UNIT 2 ADVANCED FEATURES OF VISUAL BASIC 6.0 UNT 2 ADVANCED FEATURES OF VSUAL BASC 6.0 Structure 2.0 dentification of Some Advanced Features of Visual Basic 6.0 2.1 Objectives 2.2 Employment of Features and Some More Examples 2.2.1 Simple Animation

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

LAMPIRAN A : LISTING PROGRAM

LAMPIRAN A : LISTING PROGRAM LAMPIRAN A : LISTING PROGRAM 1. frmmenu.frm Dim CN As Connection Dim rshapus As Recordset Private Sub DfaHasil_Click() Call frmlap.cetak Private Sub Form_Load() Set CN = New ADODB.Connection CN.ConnectionString

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

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

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

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

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

Chapter 14 Sequential Files

Chapter 14 Sequential Files CHAPTER 14 SEQUENTIAL FILES 1 Chapter 14 Sequential Files (Main Page) 14.1 DirListBox, FileListBox, and DriveListBox toolbox icons. 14.2 Some DirListBox, FileListBox, and DriveListBox common properties

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 Interactive Course Object-Oriented Programming

Visual Basic 6 Interactive Course Object-Oriented Programming Visual Basic 6 Interactive Course - CH 2 - Object-Oriented Programming Page 1 of 33 [Figures are not included in this sample chapter] Visual Basic 6 Interactive Course - 2 - Object-Oriented Programming

More information

UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0

UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0 UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0 The VB6 IDE (Integrated Development Environment) is a very simple and fully featured IDE. If you start out programming in VB6 you may end up being too spoiled to

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

File Organization and Management

File Organization and Management 1 UNESCO-NIGERIA TECHNICAL & VOCATIONAL EDUCATION REVITALISATION PROJECT-PHASE II NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY File Organization and Management YEAR II- SE MESTER I PRACTICAL Version 1: December

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

PROJECT ELECTRONIC CONTROL GAS INJECTION SYSTEM

PROJECT ELECTRONIC CONTROL GAS INJECTION SYSTEM PROJECT ELECTRONIC CONTROL GAS INJECTION SYSTEM SOURCE CODE VISUAL BASIC Dim WR As Boolean Dim pw Dim data Dim oxg Public index1 Dim index2 Dim k Dim u Dim refd Dim datar1$(1000, 9) Dim c_data Dim A$(10)

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

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

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

Introduction to Computer Use II

Introduction to Computer Use II Winter 2006 (Section M) Topic F: External Files and Databases Using Classes and Objects Friday, March 31 2006 CSE 1530, Winter 2006, Overview (1): Before We Begin Some administrative details Some questions

More information

Reading and Writing Files. Keeping Data

Reading and Writing Files. Keeping Data Reading and Writing Files Keeping Data Why do we use files? For permanently storing data. For dealing with information too large to fit in memory. Sequential Access Files Think of files as being stored

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

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

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

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

Learn Visual Basic 6.0

Learn Visual Basic 6.0 6-1 Learn Visual Basic 60 6 Error-Handling, Debugging and File Input/Output Review and Preview In this class, we expand on our Visual Basic knowledge from past classes and examine a few new topics We first

More information

Index. B base classes creating, , 389 inheriting, inheriting in new classes, 390

Index. B base classes creating, , 389 inheriting, inheriting in new classes, 390 Index Symbols & (string concatenation (combination) operator), 70, 135 function of, 174 * (multiplication operator), 135 + (addition operator), 135 / (division operator), 135 = (assignment (equal to) operator),

More information

On Railway Reservation. U G D C A Semester VI. Roll No DA

On Railway Reservation. U G D C A Semester VI. Roll No DA On Railway Reservation U G D C A Semester VI Submitted to: Dr. P. K. Sen (Co-ordinator) Submitted By: (Name of Student) Roll No. 14836DA Contents 1. Acknowledgement 2. Objectives 3. Declaration 4. Analysis

More information

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

University of Technology Laser & Optoelectronics Engineering Department Visual basic Lab. List of items List of items ListBox Control Properties List object.list(index) [= string] List1.List(0) List1.List(1) list ItemData list AddItem list NewIndex List1.AddItem "Judy Phelps" List1.ItemData(List1.NewIndex)

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

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

CMPT 110 MIDTERM OCTOBER 18, 2001

CMPT 110 MIDTERM OCTOBER 18, 2001 CMPT 110 MIDTERM OCTOBER 18, 2001 1 What will be displayed when the command button is clicked? 7% Level of difficulty 7 (out of 10) Assume there is a command button called cmdbutton Assume there is a picturebox

More information

GETTING STARTED WITH MAPOBJECTS LT USING VISUAL BASIC

GETTING STARTED WITH MAPOBJECTS LT USING VISUAL BASIC ii GETTING STARTED WITH MAPOBJECTS LT USING VISUAL BASIC Contents 1 The Map control 1 LT 2 Map tools 5 3 Map display 15 4 Adding data at run time 21 CONTENTS iii iv GETTING STARTED WITH MAPOBJECTS LT USING

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

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

Using Visual FoxPro s ActiveX Controls

Using Visual FoxPro s ActiveX Controls Using Visual FoxPro s ActiveX Controls Doug Hennig Partner Stonefield Systems Group Inc. 1112 Winnipeg Street, Suite 200 Regina, SK Canada S4R 1J6 Phone: (306) 586-3341 Fax: (306) 586-5080 Email: dhennig@stonefield.com

More information

SMART Recorder. Record. Pause. Stop

SMART Recorder. Record. Pause. Stop SMART Recorder The recorder is used to record actions that are done on the interactive screen. If a microphone is attached to the computer, narration can be recorded. After the recording has been created,

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

LAMPIRAN FORM 1 Universitas Sumatera Universitas Utara

LAMPIRAN FORM 1 Universitas Sumatera Universitas Utara LAMPIRAN FORM 1 Private Sub Text2_KeyPress(KeyAscii As Integer) If KeyAscii = vbkeyreturn Then Set tbladministrator = New ADODB.Recordset With tbladministrator.open "SELECT * FROM Administrator WHERE userid

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

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

Respond to Data Entry Events

Respond to Data Entry Events Respond to Data Entry Events Callahan Chapter 4 Understanding Form and Control Events Developer s Goal make data entry easy, fast, complete, accurate Many form- and control-level events occur as user works

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

Create a custom tab using Visual Basic

Create a custom tab using Visual Basic tutorials COM programming Create a custom tab using Visual Basic 1/5 Related files vb_tab.zip Description Visual basic files related to this tutorial Introduction This tutorial explains how to create and

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

LAMPIRAN LIST PROGRAM

LAMPIRAN LIST PROGRAM LAMPIRAN LIST PROGRAM 1. Modules Public conn As New ADODB.Connection Public rstb_pendekatan As ADODB.Recordset Public rstb_solusi As ADODB.Recordset Public rstb_alasan As ADODB.Recordset Public rstb_pilihan

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

CST242 Windows Forms with C# Page 1

CST242 Windows Forms with C# Page 1 CST242 Windows Forms with C# Page 1 1 2 4 5 6 7 9 10 Windows Forms with C# CST242 Visual C# Windows Forms Applications A user interface that is designed for running Windows-based Desktop applications A

More information

TMS Advanced Smooth Mega Menu

TMS Advanced Smooth Mega Menu TMS Advanced Smooth Mega Menu June 2009 Copyright 2009 by tmssoftware.com bvba Web: http://www.tmssoftware.com Email: info@tmssoftware.com 1 Index TAdvSmoothMegaMenu... 3 TAdvSmoothMegaMenu description...

More information

11-1 11-1.1 11-1.2 11-2 11-2.1 11-2.2 108 II 11-1 Timer 11-1.1 Windows 11-1 11-1 Visual Basic Animation Animation 11 109 Animation Animation RLE AVI AVI 11-2 Visual Basic Animation / Microsoft Windows

More information

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

Skill Area 336 Explain Essential Programming Concept. Programming Language 2 (PL2) Skill Area 336 Explain Essential Programming Concept Programming Language 2 (PL2) 336.2-Apply Basic Program Development Techniques 336.2.1 Identify language components for program development 336.2.2 Use

More information

Lecture 2 DOS & Windows file commands by: lecturer Raya N.Ismail

Lecture 2 DOS & Windows file commands by: lecturer Raya N.Ismail Lecture 2 DOS & Windows file commands by: lecturer Raya N.Ismail What is a File A group of organized data (records) which are assembled for one particular purpose and considered as one unit Stored in permanent

More information

Control AutoCAD on Visual Basic

Control AutoCAD on Visual Basic Part2 Control AutoCAD on Visual Basic MainForm.bmp Text Chapter7 Text control Control creating ad editing of text from VB. Chapter8 Text insert Import Text from Excel spread sheets. Chapter9 Balloon Draw

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

S600 Transferring Parameters

S600 Transferring Parameters S600 Transferring Parameters A typical need is to transfer parameter settings from one drive to its replacement/spare.this could be from a file that is already archived or there may be a need to upload

More information

Universitas Sumatera Utara

Universitas Sumatera Utara 43 L A M P I R A N 44 Penulisan Kode Program Aplikasi Game Tetris A. Kode program aplikasi game tetris untuk form1 ( MainF.frm ) adalah sebagai berikut. Dim BANK As Database Dim RS As DAO.Recordset Private

More information

Lab Sheet 4.doc. Visual Basic. Lab Sheet 4: Non Object-Oriented Programming Practice

Lab Sheet 4.doc. Visual Basic. Lab Sheet 4: Non Object-Oriented Programming Practice Visual Basic Lab Sheet 4: Non Object-Oriented Programming Practice This lab sheet builds on the basic programming you have done so far, bringing elements of file handling, data structuring and information

More information

Darshan Institute of Engineering & Technology for Diploma Studies

Darshan Institute of Engineering & Technology for Diploma Studies Dialog Box: There are many built-in dialog boxes to be used in Windows forms for various tasks like opening and saving files, printing a page, providing choices for colors, fonts, page setup, etc., to

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

Image Loader Program (ILP) for High Performance Controllers. Book E33 - version 1.03

Image Loader Program (ILP) for High Performance Controllers. Book E33 - version 1.03 Image Loader Program (ILP) for High Performance Controllers Book E33 - version 1.03 Table of contents 1. Introduction 3 1.1 What is ILP? 3 2. Installation 4 2.1 Software requirements 4 2.2 Hardware requirements

More information

Appendix E SLAMM Source Code

Appendix E SLAMM Source Code Appendix E SLAMM Source Code Attribute VB_Name = "CalcMainModule"... 2 Attribute VB_Name = "CalcPollutants"... 38 Attribute VB_Name = "Procedures"... 50 Attribute VB_Name = "CalcWetDetention"... 91 Attribute

More information

Using the printer with Windows 3.1

Using the printer with Windows 3.1 Using the printer with Windows 3.1 The following procedure automatically installs the Adobe PS3 printer driver and PostScript printer description files (PPDs) required by some applications. The Adobe PS3

More information

Windows Application Development Tutorial for ASNA Visual RPG 8.0 for Microsoft Visual Studio.NET 2005

Windows Application Development Tutorial for ASNA Visual RPG 8.0 for Microsoft Visual Studio.NET 2005 Windows Application Development Tutorial for ASNA Visual RPG 8.0 for Microsoft Visual Studio.NET 2005 Information in this document is subject to change without notice. Names and data used in examples are

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

EEE-425 Programming Languages (2013) 1

EEE-425 Programming Languages (2013) 1 2 System.Drawing Namespace System.Windows.Forms Namespace Creating forms applications by hand Creating forms applications using Visual Studio designer Windows applications also look different from console

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

SmartMail for Lotus Notes Lotus Notes Server Setup User Guide

SmartMail for Lotus Notes Lotus Notes Server Setup User Guide SmartMail for Lotus Notes Lotus Notes Server Setup User Guide Copyright 2006, E-Z Data, Inc., All Rights Reserved No part of this documentation may be copied, reproduced, or translated in any form without

More information

Océ Scan Router. Océ Scan Router Administrators Guide. Scan Distribution System

Océ Scan Router. Océ Scan Router Administrators Guide. Scan Distribution System Scan Router Océ Scan Router Administrators Guide Océ Scan Router Administrators Guide Scan Distribution System Océ Scan Router is a tool desig ned to help distribute scan files from any scan capable device

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

Rooftop Industries Pvt. Ltd.

Rooftop Industries Pvt. Ltd. Rooftop Industries Pvt. Ltd. Production and inventory management system A level Computing Project Shritesh Bhattarai Little Angels' College 1 Table of Contents Definition, investigation and analysis...

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

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

Introduction VBA for AutoCAD (Mini Guide)

Introduction VBA for AutoCAD (Mini Guide) Introduction VBA for AutoCAD (Mini Guide) This course covers these areas: 1. The AutoCAD VBA Environment 2. Working with the AutoCAD VBA Environment 3. Automating other Applications from AutoCAD Contact

More information

4D View. Language Reference Windows / Mac OS. 4D View D SA / 4D, Inc. All rights reserved.

4D View. Language Reference Windows / Mac OS. 4D View D SA / 4D, Inc. All rights reserved. 4D View Language Reference Windows / Mac OS 4D View 2002-2003 4D SA / 4D, Inc. All rights reserved. 4D View - Language Reference Version 2003 for Windows and Mac OS Copyright 2002-2003 4D SA / 4D, Inc.

More information

Learn Visual Basic 6.0

Learn Visual Basic 6.0 7-1 Learn Visual Basic 6.0 7. Graphics Techniques with Visual Basic Review and Preview In past classes, we've used some graphics tools: line tools, shape tools, image boxes, and picture boxes. In this

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

Contents. Some Basics Simple VBA Procedure (Macro) To Execute The Procedure Recording A Macro About Macro Recorder VBA Objects Reference

Contents. Some Basics Simple VBA Procedure (Macro) To Execute The Procedure Recording A Macro About Macro Recorder VBA Objects Reference Introduction To VBA Contents Some Basics Simple VBA Procedure (Macro) To Execute The Procedure Recording A Macro About Macro Recorder VBA Objects Reference Some Basics Code: You perform actions in VBA

More information

An Introduction to Visual Basic for Visual FoxPro Developers

An Introduction to Visual Basic for Visual FoxPro Developers An Introduction to Visual Basic for Visual FoxPro Developers Overview Whil Hentzen Hentzenwerke Corporation 980 East Circle Drive Milwaukee, WI 53217-5361 USA Voice: 414.332.9876 Fax: 414.332.9463 www.hentzenwerke.com

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

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

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

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

Tech-Talk Using the PATROL Agent COM Server August 1999 Authored By: Eric Anderson

Tech-Talk Using the PATROL Agent COM Server August 1999 Authored By: Eric Anderson Tech-Talk Using the PATROL Agent COM Server August 1999 Authored By: Eric Anderson Introduction Among the many new features of PATROL version 3.3, is support for Microsoft s Component Object Model (COM).

More information

AVM Networks - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

AVM Networks - FTP Site Statistics. Top 20 Directories Sorted by Disk Space Property Value FTP Server ftp.avm.de Description AVM Networks Country Germany Scan Date 12/May/2014 Total Dirs 2,056 Total Files 2,698 Total Data 39.66 GB Top 20 Directories Sorted by Disk Space Name Dirs

More information

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

PROGRAMMING LANGUAGE 2 (SPM3112) NOOR AZEAN ATAN MULTIMEDIA EDUCATIONAL DEPARTMENT UNIVERSITI TEKNOLOGI MALAYSIA 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

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