0% found this document useful (0 votes)
80 views

Grade 7 Unit 5

This document provides an introduction to visual basics, including: 1) Objective and subjective type questions covering topics like form design, controls, and the solution explorer. 2) A description of the main interface elements in visual basics like the title bar, menu bar, form window, and toolbox. 3) The four step process for developing an application: creating a form, placing controls, setting properties, and adding event code. 4) The two methods for placing controls on a form by double clicking or dragging and dropping, and how to reposition and resize controls.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views

Grade 7 Unit 5

This document provides an introduction to visual basics, including: 1) Objective and subjective type questions covering topics like form design, controls, and the solution explorer. 2) A description of the main interface elements in visual basics like the title bar, menu bar, form window, and toolbox. 3) The four step process for developing an application: creating a form, placing controls, setting properties, and adding event code. 4) The two methods for placing controls on a form by double clicking or dragging and dropping, and how to reposition and resize controls.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Unit No: 5

Introduction to Visual Basics

Objective type Questions:


a. iv. all of these b. ii. Button c. iii. Form Design d. ii. TextBox
e. ii. Solution Explorer

Subjective Type Questions:

a. Title Bar: The title bar at the top of the window displays the title of the project.
Menu Bar: The menu bar consists of many drop-down menus. Clicking on any option of the menu
bar makes it active.
Form Window: The Form window is the primary work area that forms the background of the
application. The user can place objects on the form.
Toolbox: The Toolbox contains the controls. Controls are GUI components that can be added to the form.

b. The four steps in developing an application are:


i. Create a form.
ii. Place controls on the form.
iii. Set properties for the controls.
iv. Add code to the controls to handle the events.

c. The two methods of placing controls on a form are given below:


First Method:
i. Double-click on the control in the Toolbox.
ii. The control appears at the top-left corner of the form.
iii. To resize the control, drag the resize pointers on its edges or corners.
Second Method:
i. Click on the control in the Toolbox, and with the left mouse button pressed down, drag and drop
it onto the form.
ii. Reposition the control by holding down the left mouse button and dragging it to a new location.
To resize the control, drag one of its edges or corners.

d. After declaring a variable using the Dim statement, one can assign a value to it using an assignment
statement. The general format of an assignment statement is:
Variable = Expression or Constant
For example:
A = 100 or
A = B * C
e. The arithmetic operators used in Visual Basic are: Addition (+), Subtraction (-), Multiplication (*), Exponent
(^)Division (/), Integer Division (\), and Modulus (Mod).
f. Below are a few points that show the usefulness of event driven programming:
• Programmes can be written and altered easily
• Tools can be selected from the tool bar directly
• Makes programming easier through its predictive feature–the software predicts
what the programme is going to type

g. Differences between MS Small and Visual Basic

MS Small Basic Visual Basic

creates Windows programmes event driven programming

programmes can be shared even if someone


does not have Small Basic on computer

uses loops code written between Private Sub and End Sub

uses WriteLine() and Write()

easy to manipulate graphics

You might also like