Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
21Activity
0 of .
Results for:
No results containing your search query
P. 1
Visual Basic

Visual Basic

Ratings: (0)|Views: 477|Likes:
Published by raunak19

More info:

Published by: raunak19 on Apr 24, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

02/07/2013

pdf

text

original

 
August 2008
Subject Code: BT0040-1Subject Name: Visual Programming with VBCourse Name: BSc IT NewSemester: IICredits: 4Marks: 40
Q.1 Write about the Visual Basic Application Development Life cycle with a sample Formsdevelopment for performing integer arithmetic operations.
Ans.Visual Basic Application Development Life cycle:
These are the necessary steps tocreate a visual basic program. Programmers call these steps as ‘
development cycle
’.
 
Decide
what you want the computer to do.
Decide
how you want your program to look on the screen. (The appearance of your program is called the user interface)
Draw
your user interface by using common components, such as windows, menus andcommand buttons. (The components of user interface are called objects or controls).
Define
the name, color, size and appearance of each user interface object. (An object’scharacteristics are called properties).
Write
instructions in BASIC to make each part of your program do something. (BASICinstructions are called commands).
Run
your program to see whether it works.
Fix
any errors (or bugs) in your program.
Q.2Discuss the following:
Form Modules
Standard Modules
Class ModulesAns.
Form modules
: Form modules (.FRM extension) are the foundation of any VB application.They can contain graphical descriptions of the form and its controls, including their property,settings. They can also contain form level declarations of type constants, variables and externalprocedures, procedures that handle events and general procedures. Virtually everything thatapplies to class module applies to form module. Forms are just class modules that can havecontrols placed on them and display a form window. Forms are part of our application that arevisible to users at run time.
 
Standard modules
: Standard modules (.BAS extension) are containers for proceduresand declarations, commonly used by other parts of our application. They can containglobal or module level declarations of types, constant, variables, external proceduresand global procedures.
Class modules
: Class modules (.CLS extension) are foundation of object orientedprogramming in VB. We can write code in class modules to create new objects. Thesenew objects can include our own customized properties and methods, although customobjects can not have their own events. All the properties and method we create can alsobe used by other objects, in our application. We can also use the keyword, New tocreate multiple copies of our objects.
Q.3
Create a Menu Interface in Visual Basic which performs the same functionality of MS – WordFile menu.Ans.Q.4Develop a University Database using MS – Access. Create appropriate form based interfaces toaccess the data using controls in the tool box.
 
Subject Code: BT0040-2Subject Name: Visual Programming with VBCourse Name: BSc IT NewSemester: IICredits: 4Marks: 40
Q.1Discuss the following:
Visual Basic Editions
Object Naming Conventions
Event ProceduresAns.
Visual Basic Editions
: Visual Basic software comes in three editions:
Learning Edition
: which includes the Visual Basic development environment and use of standard tools to develop applications
Professional Edition
: It is used by computer professionals as it supports the tools todevelop ActiveX and internet controls.
Enterprise Edition
: which includes all the features of professional edition as well as MSVisual Source safe for source code control and Automation and Component manager?
Object Naming Conventions
: When we create an object, VB sets its name property to adefault value. It is good practice to change their Name properties to something moredescriptive, when there are several controls of the same type. The following namingconvention for VB objects is a common practice.
ObjectPrefixExample
FormFrmfrmFileOpenCheckboxChkchkVegCombo boxCbocboLanguageCommand ButtonCmdcmdCancelDataDatdatBibilioDirectory list boxDirdirSourceDrive list boxDrvdrvTargetFile list boxFilfilSourceFrameFrafraCourseHorizontal scroll barHsbhsbVolumeImageImgimgIconLabelLbllblNameLineLinlinVerticalList boxLstlstInstitutesMenuMnumnuFileOpenOption buttonOptoptSmilePicture boxPicpicDiskShapeShpshpCircleTextboxTxttxtNameTimeTmrtmrAlarmVertical scrollbarVsbvsbRate

Activity (21)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
dnlkaba liked this
Najwa Subakti liked this
Jc Tadeo liked this
umapathy74 liked this
chocolatte7 liked this
sankumi liked this
morki liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->