By: Ashish Sharma 0901ET161015 Kuldeep Sharma 0901ET161028 Neetesh Srivastava 0901ET161034 Shivam Sharma 0901ET161046
By: Ashish Sharma 0901ET161015 Kuldeep Sharma 0901ET161028 Neetesh Srivastava 0901ET161034 Shivam Sharma 0901ET161046
Toolbar
Menu Bar Project
Explorer
Toolbox
Form
Properties
Window
Form Designer
Form Layout
Window
Tool box
The toolbox contains icons that represent commonly used
controls such as label , textbox , command button etc.
Project window
It displays a list of all forms that makes up the application. It has
three buttons on the top left.
1.Click on view object to open a form.
2.Click on view code to open code window.
View Select
Code form
View
object
Controls
Label
Frame
Text Box
Command Button
Combo
Check Box Box
Option Button
List
Box
Control Properties
The most common and important
object properties are :-
Name
Caption
Left
Top
Height
Width
Enabled
Visible
The visual basic editor
FORM WINDOW
The form window is the
primary work area that forms
The background of the
application .The user can draw
objects on the form.
Development of an application
In VB, an application can be developed by the
following steps:
1.Create a form
2.Place controls on the form
3.set properties or the control
4.Add code to the handle the events
To resize the control just click on the control and resize the pointers
on its edges and corners.
I. Drag the edges pointer for changing the size either horizontally or vertically.
II. Drag the corner pointers for changing the size diagonally.
SECOND METHOD
Click on the control icon in the toolbox and then click on the desired
location on the form. Drag the mouse diagonally so that the control
has the desired size.
To reposition the control ,hold down the left mouse button and drag
the control to a new location.
To resize the control, click the control, drag one of its edges or
corners.
Delete a control
CLICK ON
DELETE
Form object
To create a VB application ,we need an interface for the user to interact.
The form is where the interface is drawn. some of the common
properties , events and methods are:
Properties
CAPTION :It sets the title of the form
FONT: It sets the font type ,font style and font size
for the text.
FORE COLOR : It sets the color for the text on the form.
LOAD : Form-load event is triggered when the form I loaded. This loads the
form into the memory.
Methods
PRINT :This prints text string on the form.
SHOW : This makes the form visible. It is the same as setting a form’s
visible property on true.
COMMAND BUTTON
The command button is very important control as it is
Used to execute commands and it displays an illusion
That the button is pressed when the user clicks on it.
PROPERTIES
APPEARANCES: This is 3-d or flat in appearance.
CAPTION: This is the string that is displayed on the
command button.
VISIBLE: Value true/false determines whether it is visible
or not.
FONT: This Sets Font, font Style And Font Size.
ENABLED: Value true/false determines whether it responds
to an event or not.
EVENTS
CLICK: This event is triggered when it is selected by cliicking
on it.
Making of a program
Open the visual basic studio.
Then select the type of program whether it
is .exe or any other.
According to need put the components like
command button, text box etc.
Now write the program by opening the
editor.
For testing click on play sign in the menu bar
or going to run.
Thank you for listening
It was a try for giving basic understanding of
visual basic and it’s environment.