Unit 4 Application Development On Dot Net-1
Unit 4 Application Development On Dot Net-1
Create a project
Step1: First, you'll create a C# application project. The project type
comes with all the template files you'll need, before you've even added
anything.
1. Open Visual Studio.
2. On the start window, select Create a new project.
Step 2:
1
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Step 3:In the Configure your new project window, type or enter
“HelloWorld” in the Project name box. Then, select Create.
2
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
The first step is to start a new project and build a form. Open your Visual
Studio and select File->New Project and select Visual Basic from the New
project dialog box and select Windows Forms Application. Enter your
project name instead of WindowsApplication1 in the bottom of dialogue
box and click OK button. The following picture shows how to create a new
Form in Visual Studio.
3
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
4
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
If you click the icon on the top left corner, it opens the control menu,
which contains the various commands to control the form like to move
control from one place to another place, to maximize or minimize the
form or to close the form.
Form Properties
Following table lists down various important properties related to a form.
These properties can be set or read during application execution. You can
refer to Microsoft documentation for a complete list of properties
associated with a Form control
5
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
6
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Form Methods
The following are some of the commonly used methods of the Form class.
You can refer to Microsoft documentation for a complete list of methods
associated with forms control −
Activate
1
Activates the form and gives it focus.
ActivateMdiChild
2
Activates the MDI child of a form.
AddOwnedForm
3
Adds an owned form to this form.
BringToFront
4
Brings the control to the front of the z-order.
CenterToParent
5 Centers the position of the form within the bounds of the parent
form.
CenterToScreen
6
Centers the form on the current screen.
Close
7
Closes the form.
Contains
8 Retrieves a value indicating whether the specified control is a
child of the control.
Focus
9
Sets input focus to the control.
7
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Hide
10
Conceals the control from the user.
Refresh
11 Forces the control to invalidate its client area and immediately
redraw itself and any child controls.
Scale(Size F)
12 Scales the control and all child controls by the specified scaling
factor.
ScaleControl
13
Scales the location, size, padding, and margin of a control.
ScaleCore
14
Performs scaling of the form.
Select
15
Activates the control.
SendToBack
16
Sends the control to the back of the z-order.
SetAutoScrollMargin
17
Sets the size of the auto-scroll margins.
SetDesktopBounds
18
Sets the bounds of the form in desktop coordinates.
SetDesktopLocation
19
Sets the location of the form in desktop coordinates.
SetDisplayRectLocation
20
Positions the display window to the specified value.
Show
21
Displays the control to the user.
ShowDialog
22
Shows the form as a modal dialog box.
8
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Form Events
Following table lists down various important events related to a form. You
can refer to Microsoft documentation for a complete list of events
associated with forms control −
9
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
10
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Controls in VB.NET
1. Label Control
In VB.NET, a label control is used to display descriptive text for the form
in control. It does not participate in user input or keyboard or mouse
events. Also, we cannot rename labels at runtime. The labels are defined
in the class System.Windows.Forms namespace.
Label Properties
Properties Description
11
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Label Events
Events Description
An AutoSizeChanged event occurs in the Label
AutoSizeChanged control when the value of AutoSize property is
changed.
Click event is occurring in the Label Control to
Click
perform a click.
When a user performs a double-clicked in the Label
DoubleClick
control, the DoubleClick event occurs.
It occurs when the Label Control receives focus on
GotFocus
the Window Form.
The Leave event is found when the input focus
Leave
leaves the Label Control.
It occurs when the value of Tabindex property is
TabIndexChanged
changed in the Label control.
When the control is removed from the
ControlRemoved Control.ControlCollection, a ControlRemoved event,
occurs.
It occurs when the property of TabStop is changed
TabStopChanged
in the Label Control.
A BackColorChanged event occurs in the Label
BackColorChanged control when the value of the BackColor property is
changed.
12
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Method Description
Select
Activates the control.
13
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Example
Button Control
Button control is used to perform a click event in Windows Forms, and it
can be clicked by a mouse or by pressing Enter keys. It is used to submit
all queries of the form by clicking the submit button or transfer control to
the next form. However, we can set the buttons on the form by using
drag and drop operation.
14
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
15
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Button Properties
Properties Description
It is used to get or set the auto mode value through
AutoSizeMode which the button can automatically resize in the
Windows form.
It is used to set the background color of the Button
BackColor
in the Windows form.
It is used to set the background image of the
BackgroundImage
button control.
It is used to set or get the foreground color of the
ForeColor
button control.
It is used to set or gets the image on the button
Image
control that is displayed.
It is used to set the upper-left of the button
Location control's coordinates relative to the upper-left
corner in the windows form.
It is used to set the name of the button control in
Text
the windows form.
It is used to set or get a value representing whether
AllowDrop the button control can accept data that can be
dragged by the user on the form.
It is used to set or get the tab order of the button
TabIndex
control within the form.
Button Events
16
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Methods
Name Description
Retrieves the size of a rectangular area into which a
GetPreferredSize
control can be fitted.
Notifies the Button whether it is the default button so
NotifyDefault
that it can adjust its appearance accordingly.
Select Activates the control.
Returns a String containing the name of the
ToString Component, if any. This method should not be
overridden.
TextBox Control
A TextBox control is used to display, accept the text from the user as an
input, or a single line of text on a VB.NET Windows form at runtime.
17
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Example
Properties
Properties Description
It is used to get or set a value that indicates how
AutoCompleteMode the automatic completion works for the textbox
control.
It is used to set the font style of the text displayed
Font
on a Windows form.
18
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
TextBox Events
Events Description
When a textbox is clicked, a click event is
Click
called in the textbox control.
It occurs in the TextBox Control when the
CausesValidationChanged value of CauseValidation property is
changed.
It is found in the TextBox control when the
AcceptTabsChanged
property value of the AcceptTab is changed.
It is found in the TextBox Control when the
BackColorChanged
property value of the BackColor is changed.
It is found in the TextBox Control when the
BorderStyleChanged
value of the BorderStyle is changed.
It is found when the new control is added
ControlAdded
to the Control.ControlCollection.
19
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Methods
Method Description
AppendText Appends text to the current text of a text box.
Clear Clears all text from the text box control.
Copies the current selection in the text box to
Copy
the Clipboard.
Moves the current selection in the text box to
Cut
the Clipboard.
Replaces the current selection in the text box with the
Paste
contents of the Clipboard.
Sets the selected text to the specified text without
Paste(String)
clearing the undo buffer.
ResetText Resets the Text property to its default value.
ToString Returns a string that represents the TextBoxBase control.
Undo Undoes the last edit operation in the text box.
ComboBox Control
The ComboBox control is used to display more than one item in a drop-
down list. It is a combination of Listbox and Textbox in which the user
can input only one item.
20
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Properties
Property Description
The AllowSelection property takes the value that
AllowSelection
indicates whether the list allows selecting the list item.
It takes a value that represents how automatic
AutoCompleteMode
completion work for the ComboBox.
It takes a value that determines whether the control is
Created
created or not.
DataBinding It is used to bind the data with a ComboBox Control.
The BackColor property is used to set the background
BackColor
color of the combo box control.
It is used to get or set the data source for a ComboBox
DataSource
Control.
It is used to set the style or appearance for the
FlatStyle
ComboBox Control.
21
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
ComboBox Events
Events Description
It occurs when the property of the font value is
FontChanged
changed.
When the data is bound with a combo box
Format
control, a format event is called.
It occurs when the property value of
SelectIndexChanged
SelectIndexChanged is changed.
When the user requests for help in control, the
HelpRequested
HelpRequested event is called.
It occurs when the user leaves the focus on the
Leave
ComboBox Control.
It occurs when the property of margin is changed
MarginChanged
in the ComboBox control.
Methods
22
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Example
Public Class Form7
Private Sub Form7_Load(sd As Object, evnt As EventArgs) Handles MyBase.Load
ComboBox1.Items.Add("Male")
ComboBox1.Items.Add("Female")
End Sub
End Class
Output
ListBox Control
The ListBox control is used to display a list of items in Windows form. It
allows the user to select one or more items from the ListBox Control.
Furthermore, we can add or design the list box by using the properties
and events window at runtime.
23
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Properties
Description
Name
It takes a value that defines whether the list box
AllowSelection
allows the user to select the item from the list.
It obtains a value that determines whether the Listbox
CanSelect
control can be selected.
It is used to get or set the width of the columns in a
ColumnWidth
multicolumn Listbox.
As the name defines, a container gets the IContainer
Container
that stores the component of ListBox control.
It is used to get the collection of controls contained
Controls
within the control.
It takes a value that determines whether the control is
Created
created or not.
Width It is used to set the width of the ListBox control.
It takes a value that determines whether the ListBox
Visible control and all its child are displayed on the Windows
Form.
It is used to get or set the method that determines
SelectionMode
which items are selected in the ListBox.
It allows multiple columns of the item to be displayed
MultiColumn
by setting the True value in the Listbox.
24
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
ListBox Methods
Listbox events
25
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Output
CheckedListBox Control
The CheckedListBox is similar to Listbox except that it displays all
items in the list with a checkbox that allows users to check or uncheck
single or multiple items.
26
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Properties
Properties Description
It obtains a value that determines whether the
AccessibilityObject AccessibilityObject is assigned to the
CheckedListBox control.
It gets or sets a value that tells if the accessible
AccessibleName client application has used the name of the
checkedlistbox control.
It gets a value that indicates whether the ListBox
AllowSelection
allows for the item to be selected from the list.
It gets or sets a value representing whether the
AllowScollOffset CheckedListBox control is scrolled in
ScrollControlIntoView(Control).
It is used to set the type of border around the
BorderStyle
CheckedListBox by getting or setting a value.
It is used to store a collection of checked items in
CheckedItems
the CheckedListBox.
It is used to set or get a value that indicates if the
ScrollAlwaysVisible vertical scroll bar appears in Windows Forms at all
times.
It is used to get all selected items from
SelectedItems
CheckedListBox.
It is used to get or set a value representing the
SelectionMode
items' selection mode in the CheckedListBox.
It is used to set the first visible item at the top of
TopIndex
the index in the CheckedListBox.
CheckedListBox Methods
Methods Description
It is used to unselect all the selected items in
ClearSelected()
the CheckedListBox.
It is used to create new accessibility of the
CreateAccessibilityInstance()
object in the CheckedListBox Control.
27
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Events
Methods Description
Click Single click on it.
Example
Public Class CheckedListBox1
Private Sub CheckedListBox1_Load(sender As Object, e As EventArgs) Handles
MyBase.Load
CheckedListBox1.Items.Add("VB.NET")
CheckedListBox1.Items.Add("Java")
CheckedListBox1.Items.Add("Python")
CheckedListBox1.Items.Add("C")
CheckedListBox1.Items.Add("C#")
CheckedListBox1.Items.Add("PHP")
CheckedListBox1.Items.Add("JavaScript")
CheckedListBox1.Items.Add("Ruby Language")
CheckedListBox1.Items.Add("Android")
CheckedListBox1.Items.Add("Perl")
End Sub
End Class
28
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Output:
RadioButton Control
The RadioButton is used to select one option from the number of
choices. If we want to select only one item from a related or group of
items in the windows forms, we can use the radio button. The
RadioButton is mutually exclusive that represents only one item is active
and the remains unchecked in the form.
29
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
RadioButton Properties
Property Description
30
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
RadioButton Methods
31
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Events
the control returns a Boolean numeric value to indicate its state (0 for
deselected and 1 for selected).
Example
Public Class RadioBtn
Private Sub RadioBtn_Load(sender As Object, e As EventArgs) Handles MyBas
e.Load
RadioButton1.Text = "Male"
RadioButton2.Text = "Female"
RadioButton3.Text = "Transgender"
End Sub
Output:
CheckBox Control
The CheckBox control is a control that allows the user to select or deselect
options from the available options. When a checkbox is selected, a tick or
checkmark will appear on the Windows form.
32
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
CheckBox Properties
Property Description
33
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
CheckBox Methods
Method Description
CheckBox Events
Event Description
34
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Example
Public Class Checkbxvb
Private Sub Checkbxvb_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.Text = "javaTpoint.com" ' Set the title name of the form
Label1.Text = "Select the fruits name"
CheckBox1.Text = "Apple"
CheckBox2.Text = "Mango"
CheckBox3.Text = "Banana"
CheckBox4.Text = "Orange"
CheckBox5.Text = "Potato"
CheckBox6.Text = "Tomato"
End Sub
End Class
35
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
PictureBox Control
PictureBox control is used to display the images on Windows Form. The
PictureBox control has an image property that allows the user to set the
image at runtime or design time.
36
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Property Description
37
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Method Description
Events Description
38
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Example
Public Class Picturebx
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
PictureBox1.Image = Image.FromFile("C:\Users\AMIT YADAV\Desktop\jtp2.png")
PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage
PictureBox1.Height = 250
PictureBox1.Width = 400
Label1.Visible = False
End Sub
Now click on the Show button to display an image in the windows form.
39
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
ProgressBar Control
The Window ProgressBar control is used by the user to acknowledge the
progress status of some defined tasks, such as downloading a large file
from the web, copying files, installing software, calculating complex
results, and more.
40
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Property Description
41
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Event Description
Events Description
42
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Example
Public Class Progressbr
Private Sub Progressbr_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.Text = "javaTpoint.com"
Button1.Text = "Show"
Label1.Text = "Click to display the progress status of the ProgressBar"
Label1.ForeColor = ForeColor.Green
ProgressBar1.Visible = False
End Sub
Dim i As Integer
ProgressBar1.Minimum = 0
ProgressBar1.Maximum = 300
Output
43
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Click on the Show button to display the progress status at run time in
Windows Form.
And when the progress status reaches the progress bar's maximum value,
it displays the following message.
ScrollBars Control
A ScrollBar control is used to create and display vertical and horizontal
scroll bars on the Windows form. It is used when we have large
information in a form, and we are unable to see all the data.
Therefore, we used VB.NET ScrollBar control. Generally, ScrollBar is of
two types: HScrollBar for displaying scroll bars and VScrollBar for
displaying Vertical Scroll bars.
44
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Property Description
The BackColor property is used to set the back color
BackColor
of the scroll bar.
It is used to set or get the maximum value of the
Maximum
Scroll Bar control. By default, it is 100.
It is used to get or set the minimum value of the
Minimum
Scroll bar control. By default, it is 0.
It is used to obtain or set a value that will be added
SmallChange or subtracted from the property of the scroll bar
control when the scroll bar is moved a short distance.
As the name suggests, the AutoSize property is used
to get or set a value representing whether the scroll
AutoSize
bar can be resized automatically or not with its
contents.
45
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Method Description
It is used to update the ScrollBar
control using the Minimum, maximum,
UpdateScrollInfo
and the value of LargeChange
properties.
It is used to raise the Scroll event in the
OnScroll(ScrollEventArgs)
ScrollBar Control.
It is used to raise the EnabledChanged
OnEnabledChanged
event in the ScrollBar control.
It is used to activate or start the
Select
ScrollBar control.
It is used to raise the ValueChanged
OnValueChanged(EventArgs)
event in the ScrollBar control.
Event Description
The AutoSizeChanged event is found in the
AutoSizeChanged ScrollBar control when the value of the AutoSize
property changes.
The Scroll event is found when the Scroll control is
Scroll
moved.
It occurs in the ScrollBar control when the value of
TextChangedEvent
the text property changes.
A ValueChanged event occurs when the property of
ValueChanged the value is changed programmatically or by a
scroll event in the Scrollbar Control.
46
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Example
Public Class ScrollBar
Private Sub ScrollBar_Load(sender As Object, e As EventArgs) Handles MyBase.Load
47
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
GroupBox properties
48
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Events
Timer Control
The timer control is a looping control used to repeat any task in a given
time interval. It is an important control used in Client-side and Server-
side programming, also in Windows Services.
Furthermore, if we want to execute an application after a specific amount
of time, we can use the Timer Control. Once the timer is enabled, it
generates a tick event handler to perform any defined task in its time
interval property. It starts when the start() method of timer control is
called, and it repeats the defined task continuously until the timer stops.
49
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Properties Description
The Name property is used to set the name of the
Name
control.
The Enables property is used to enable or disable the
Enabled
timer control. By default, it is True.
An Interval property is used to set or obtain the
iteration interval in milliseconds to raise the timer
Interval
control's elapsed event. According to the interval, a
timer repeats the task.
The AutoReset property is used to obtain or set a
AutoReset Boolean value that determines whether the timer
raises the elapsed event only once.
Events property are used to get the list of event
Events
handler that is associated with Event Component.
It is used to get a value that represents whether the
CanRaiseEvents
component can raise an event.
50
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Events Description
When control or component is terminated by calling the
Disposed
Dispose method, a Dispose event occurs.
When the interval elapses in timer control, the Elapsed event
Elapsed
has occurred.
A tick event is used to repeat the task according to the time
set in the Interval property. It is the default event of a timer
Tick
control that repeats the task between the Start() and Stop()
methods.
Methods Description
The BeginInt() method is used to start run time
BeginInt() initialization of a timer control used on a form or by
another component.
The Dispose() method is used to free all resources
Dispose()
used by the Timer Control or component.
It is used to release all resources used by the
Dispose(Boolean)
current Timer control.
The Close() method is used to release the resource
Close()
used by the Timer Control.
The Start() method is used to begin the Timer
Start() control's elapsed event by setting the Enabled
property to true.
The EndInt() method is used to end the run time
EndInt() initialization of timer control that is used on a form
or by another component.
The Stop() method is used to stop the timer
Stop() control's elapsed event by setting Enabled property
to false.
Numeric-up-down
The NumericUpDown control looks like a combination of a text box
and a pair of arrows that the user can click to adjust a value.
The control displays and sets a single numeric value from a list of
fixed numeric-value choices.
51
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
The user can increase and decrease the number by clicking the up
and down arrows, by pressing the UP and DOWN ARROW keys, or
by typing a number in the text box part of the control.
Example
Public Class Form12
52
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Properties
NumericUpDown Control Properties
DecimalPlaces: Gets or sets the number of decimal places to display in
NumericUpDown Control.
UpDownAlign: Set positions the arrow buttons on the left or the right
side of the NumericUpDown. Default value is Right.
Increment: Gets or sets the value to increment or decrement the
NumericUpDown.
Methods
UpButton and DownButton.
Events
53
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Track bar
The Windows Forms TrackBar control (also sometimes called a "slider"
control) is used for navigating through a large amount of
information or for visually adjusting a numeric setting. The
TrackBar control has two parts: the thumb, also known as a slider, and
the tick marks. The thumb is the part that can be adjusted.
54
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
55
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Events of Trackbar
56
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Functions in VB.NET
In VB.NET, the function is a separate group of codes that are used
to perform a specific task when the defined function is called in a
program. After the execution of a function, control transfer to the
main() method for further execution.
It returns a value. In VB.NET, we can create more than one function
in a program to perform various functionalities.
The function is also useful to code reusability by reducing the
duplicity of the code.
For example, if we need to use the same functionality at multiple
places in a program, we can simply create a function and call it
whenever required.
Defining a Function
The syntax to define a function is:
[Access_specifier ] Function Function_Name [ (ParameterList) ] As
Return_Type
[ Block of Statement ]
Return return_val
End Function
Where,
Access_Specifier: It defines the access level of the function such
as public, private, or friend, Protected function to access the
method.
Function_Name: The function_name indicate the name of the
function that should be unique.
ParameterList: It defines the list of the parameters to send or
retrieve data from a method.
Return_Type: It defines the data type of the variable that returns
by the function.
57
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Example
Public Function add() As Integer
' Statement to be executed
End Function
Example
Function FindMax(ByVal num1 As Integer, ByVal num2 As Integer) As Integer
End Function
58
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Subroutines VB.NET
A Sub procedure is a separate set of codes that are used in VB.NET
programming to execute a specific task, and it does not return any
values. The Sub procedure is enclosed by the Sub and End Sub
statement.
The Sub procedure is similar to the function procedure for executing a
specific task except that it does not return any value, while the function
procedure returns a value.
Where,
Access_Specifier: It defines the access level of the procedure such
as public, private or friend, Protected, etc. and information about
the overloading, overriding, shadowing to access the method.
Sub_name: The Sub_name indicates the name of the Sub that
should be unique.
ParameterList: It defines the list of the parameters to send or
retrieve data from a method.
Example
Public Sub getDetails()
' Statement to be executed
End Sub
59
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
Database applications
What is Data?
Data is a collection of a distinct small unit of information. It can be used
in a variety of forms like text, numbers, media, bytes, etc. it can be
stored in pieces of paper or electronic memory, etc.
What is Database?
A database is an organized collection of data, so that it can be easily
accessed and managed.
You can organize data into tables, rows, columns, and index it to make it
easier to find relevant information.
Database handlers create a database in such a way that only one set of
software program provides access of data to all the users.
There are many dynamic websites on the World Wide Web nowadays
which are handled through databases. For example, a model that checks
the availability of rooms in a hotel. It is an example of a dynamic website
that uses a database.
60
Divya S R, Assistant Professor, AES National Degree College, Gauribidanur
61