BCA Project
BCA Project
PROJECT REPORT
On
MEETING SCHEDULER
Submitted To
In The Partial Fulfillment Of The Requirement For The Degree Of
BACHOLER OF COMPUTER APPLICATION
From
(2007-2008)
Under Supervision of (H.O.D)
Submitted By:
Department Of Bachelor Of Computer Application
Gwalior Institute for Computer Technology and Science.
2
Serial No. TOPIC Page No.
01. CERTIFICATE. 03.
02. ACKNOWLEDGEMENT. 04.
03. INTRODUCTION. 05.
04. CONFIGURATION. 08.
05. SCREENSHOTS. 09.
06. CODEINGS. 18.
07. THANKING NOTE 42.
3
Gwalior Institute for Computer Technology and Science.
CERTIFICATE
This is here to certify that Balram Dixit student of 4th Semester of
Second Year of B.C.A. of this institute has satisfactorily completed his
MINOR PROJECT on,
MEETING SCHEDULER
Under Our Guidance In The
Department Of Bachelor Of Computer Application
During the academic session of 2007-2008. This work is done in partial
fulfillment of the requirement for the award of degree of Bachelor Of
Computer Application to the MAKHANLAL CHATURVEDI
RASTRIYA PATRAKARITA EVAM SANCHAAR
VISWAVIDHYALAYA, Bhopal through Gwalior Institute For
Computer Technology And Science, done by BALRAM DIXIT is an
authentic Work Carried Out.
MR. RAMKRISHAN RAMNANI
(H.O.D.)
4
Indeed it is a matter of great felicity and privilege for giving me
opportunity to work under the guidance of Mr. C.S. Raghuvanshi Sir. He
was kind to share his precious time in discussing convolution of this
dissertation.
It was his erudite guidance with an affable and intimate that always
inspired me to go ahead in this endeavor.
I Express My Deep Sense Gratitude To:
1.) Mr. U. GHATGE Sir (Director And Chairman GICTS.)
2.) C.S.RAGHUVANSHI (H.O.D.)
3.) MR. R.K.RAMNANI Sir
4.) All My Colleagues
5.) My Parents.
5
6
MEETING SCHEDULER:
Meeting scheduling is the activity of finding a suitable time for an event
such as meeting, conference, trip, etc. It is an important part of event
planning that is usually carried out at its beginning stage.
In general, Meeting Scheduling must take into account what impact
particular dates of the event could have on the success of the event. When
organizing a scientific conference, for example, organizers might take
into account the knowledge in which periods classes are held at
universities, since it is expected that many potential participants are
university professors. They should also try to check that no other similar
conferences are held at the same time, because overlapping would make a
problem for those participants who are interesting in attending all
conferences.
When it is well known who is expected to attend the event (e.g. in the
case of a project meeting), organizers usually try to synchronize the time
of the event with planned schedules of all participants. This is a difficult
task when there are many participants or when the participants are located
at distant places. In such cases, the organizers should first define a set of
suggested dates and address a query about suitable dates to potential
participants. After response is obtained from all participants, the event
time suitable for most of participants is selected. This procedure can be
alleviated by internet tools.
7
STEPS TO PLANNING AN EVENT:
With Meeting Scheduler we can schedule an event such as a
board meeting, business lunch, conference call, family
reunion, movie night, or any other group event.
The first step to planning an event is determining its purpose, whether it
is for a wedding, company, birthday, festival or something else. From this
the Meeting Scheduler needs to choose entertainment, location, guest
list, speakers, and content. The location for events is endless, but with
event planning they would likely be held at hotels, convention centers,
reception halls, or outdoors depending on the event. Once the location is
set the coordinator/planner needs to prepare the event with staff, set up
the entertainment, and keep contact with the client. After all this is set the
event planner has all the smaller details to address like set up of the event
such as food, drinks, music, guest list, budget, advertising and marketing,
decorations, all this preparation is what is needed for an event to run
smoothly.An event planner needs to be able to manage their time wisely
for the event, and the length of preparation needed for each event so it is a
success.
WORKING CONDITIONS:
Meeting Schedulers work is considered either stressful or energizing.
This line of work is also considered fast paced and demanding. Planners
face deadlines and communicating with multiple people at one time.
Planners spend most of their time in offices, but when meeting with
clients the work is usually on-site at the location where the event is taking
place. Some physical activity is required such as carrying boxes of
8
materials and decorations or supplies needed for the event. Also, long
working hours can be a part of the job. The day the event is taking place
could start as early as 5:00 a.m. and then work until midnight. Working
on weekends is sometimes required, which is when many events take
place
9
HARDWARE CONFIGURATIONS:
Pentium IV (4) processer.
128 MB RAM. (minimum).
100 MB Hard Disk Space
(minimum).
SOFTWARE CONFIGURATIONS:
.Net Framework 2.0.
M.S. Access Installed.
10
11
WELCOME SCREEN
12
CREATE ADMINISTRATOR SCREEN
13
CREATE NEW USER SCREEN
14
ADMINISTRATOR LOGIN
15
USER LOGIN
16
ADMINISTRATORs 1
st
SCREEN
17
ADMINISTRATORs 2
nd
ADD CONTECT SCREEN
18
ADMINISTRATORs 2
nd
ADD SCHEDULE SCREEN
19
ADMINISTRATORs 2nd ADD CONTECT AND ADD SCHEDULE
SCREEN
20
ADMINISTRATORs 1
st
VIEW SCREEN
21
ADMINISTRATORs SHOW CONTECT SCREEN
22
ADMINISTRATORs SHOW SCHEDULE SCREEN
23
USERs WELCOME SCREEN
24
USERs SEE CONTECT SCREEN
25
USERs SHOW SCHEDULE SCREEN
26
FINDING SCREEN IN BOTH ADMINISTRATORs AND USERs
ACCOUNT
27
28
WELCOME SCREEN
Imports System.Data.OleDb
Public Class Form1
Public l As LoginForm2
Protected Friend str2 As String
Protected Friend i As Integer
Private Sub Form1_DoubleClick(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
Me.DoubleClick
Label1.Visible = True
End Sub
Private Sub Form1_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Label1.Visible = True
End Sub
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
l = New LoginForm2
i = 1
Form12.sc = True
l.Text = "ADMINISTRATOR"
l.MdiParent = Me
29
Label1.Visible = False
l.Show()
End Sub
Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
l = New LoginForm2
i = 2
Form12.sc = False
l.Text = "USER"
Label1.Visible = False
l.Show()
End Sub
Private Sub Button3_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button3.Click
End
End Sub
End Class
30
CREATE NEW ADMINISTRATOR
Imports System.Data.OleDb
Public Class Form3
Public f1 As Form1
Dim str As String
Dim con As OleDbConnection
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
str = TextBox1.Text
If TextBox2.Text = TextBox3.Text Then
If TextBox2.Text = "" Then
MsgBox("ENTER THE PASSWORD THEN
PRESS ENTER")
TextBox2.Focus()
End If
Else
If MsgBox("THIS PASSWORD IS NOT VALID
ENTER AGAIN", MsgBoxStyle.OkCancel) =
MsgBoxResult.Ok Then
TextBox2.Clear()
TextBox3.Clear()
End If
End If
31
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
con.Open()
Dim cmd As OleDbCommand
cmd = New OleDbCommand("insert into admi
values ('" & TextBox1.Text & "','" &
TextBox2.Text & "')", con)
cmd.ExecuteNonQuery()
With Me
.TextBox1.Clear()
.TextBox2.Clear()
.TextBox3.Clear()
End With
MsgBox("ADMINISTRATOR CREATED")
con.Close()
Me.Close()
End Sub
Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
Me.Close()
End Sub
Private Sub Form3_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Me.MdiParent = Form1
32
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
End Sub
Private Sub Form3_Move(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
Me.Move
If Me.Left < 0 Then
Me.Left = 0
End If
If Me.Top < 0 Then
Me.Top = 0
End If
If Me.Top > 381 Then
Me.Top = 381
End If
If Me.Left > 463 Then
Me.Left = 463
End If
End Sub
End Class
33
CREATE NEW USER
Imports System.Data.OleDb
Public Class form4
Public f1 As Form1
Public str As String
Dim i As Integer
Dim con As OleDbConnection
Dim str1 As String
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
str = TextBox1.Text
If TextBox2.Text = TextBox3.Text Then
If TextBox2.Text = "" Then
MsgBox("ENTER THE PASSWORD THEN
PRESS ENTER")
TextBox2.Focus()
End If
Else
If MsgBox("THIS PASSWORD IS NOT VALID
ENTER AGAIN", MsgBoxStyle.OkCancel) =
MsgBoxResult.Ok Then
i = 1
TextBox2.Clear()
TextBox3.Clear()
Else
34
Me.Close()
End If
End If
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
con.Open()
Dim cmd As OleDbCommand
cmd = New OleDbCommand("insert into
user_t values ('" & TextBox1.Text & "','" &
TextBox2.Text & "')", con)
cmd.ExecuteNonQuery()
With Me
.TextBox1.Clear()
.TextBox2.Clear()
.TextBox3.Clear()
End With
MsgBox("USER CREATED")
con.Close()
Me.Close()
End Sub
Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
Me.Close()
End Sub
35
Private Sub Label2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub form4_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Me.MdiParent = Form1
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
End Sub
Private Sub Label1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Label1.Click
End Sub
Private Sub form4_Move(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
Me.Move
If Me.Left < 0 Then
Me.Left = 0
End If
If Me.Top < 0 Then
Me.Top = 0
End If
36
If Me.Top > 358 Then
Me.Top = 358
End If
If Me.Left > 448 Then
Me.Left = 448
End If
End Sub
End Class
37
ADMINISTRATOR LOGIN
Imports System.Data.OleDb
Public Class LoginForm2
Dim con As OleDbConnection
Dim f12 As Form12
Dim f2 As Form2
Dim f1 As Form1
Dim str1, str2 As String
Private Sub OK_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles OK.Click
f12 = New Form12
f2 = New Form2
If Form1.i = 0 Then
MsgBox("INVALID USER")
GoTo abc
End If
If Form1.i = 1 Then
f2.Text = "Administrator"
str1 = "admi"
End If
If Form1.i = 2 Then
f12.Text = "user"
str1 = "user_t"
End If
38
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
con.Open()
Dim cmd As OleDbCommand
Dim rdr As OleDbDataReader
cmd = New OleDbCommand("select password
from " & str1 & " where name= '" & TextBox1.Text
& "'", con)
rdr = cmd.ExecuteReader
If rdr.Read() Then
If TextBox2.Text <> "" And Form1.i =
1 Then
If TextBox2.Text =
rdr.Item(0).ToString Then
str2 = rdr.Item(0).ToString
f2.Label1.Text =
"administrator :- " & TextBox1.Text.ToUpper
f2.Show()
TextBox1.Clear()
TextBox2.Clear()
Else
MsgBox("invalid user")
TextBox1.Clear()
TextBox2.Clear()
End If
End If
If TextBox2.Text <> "" And Form1.i =
2 Then
39
If TextBox2.Text =
rdr.Item(0).ToString Then
str2 = rdr.Item(0).ToString
f12.Text = "USER :- " &
TextBox1.Text.ToUpper
f12.Show()
TextBox1.Clear()
TextBox2.Clear()
Else
MsgBox("invalid user")
TextBox1.Clear()
TextBox2.Clear()
End If
End If
Else
MsgBox("invalid user")
TextBox1.Clear()
TextBox2.Clear()
End If
con.Close()
abc:
Me.Close()
End Sub
Private Sub Cancel_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Cancel.Click
Me.Close()
40
End Sub
Private Sub LoginForm2_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
End Sub
Public Sub New()
' This call is required by the Windows
Form Designer.
InitializeComponent()
Me.StartPosition =
FormStartPosition.CenterScreen
' Add any initialization after the
InitializeComponent() call.
End Sub
Private Sub LoginForm2_Move(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
Me.Move
If Me.Text = "ADMINISTRATOR" Then
If Me.Left < 0 Then
Me.Left = 0
End If
If Me.Top < 0 Then
Me.Top = 0
41
End If
If Me.Top > 499 Then
Me.Top = 499
End If
If Me.Left > 500 Then
Me.Left = 500
End If
End If
If Me.Text = "USER" Then
If Me.Left < 110 Then
Me.Left = 110
End If
If Me.Top < 26 Then
Me.Top = 26
End If
If Me.Top > 523 Then
Me.Top = 523
End If
If Me.Left > 609 Then
Me.Left = 609
End If
End If
End Sub
End Class
42
USER LOGIN
Imports System.Data.OleDb
Public Class LoginForm2
Dim con As OleDbConnection
Dim f12 As Form12
Dim f2 As Form2
Dim f1 As Form1
Dim str1, str2 As String
Private Sub OK_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles OK.Click
f12 = New Form12
f2 = New Form2
If Form1.i = 0 Then
MsgBox("INVALID USER")
GoTo abc
End If
If Form1.i = 1 Then
f2.Text = "Administrator"
str1 = "admi"
End If
If Form1.i = 2 Then
f12.Text = "user"
str1 = "user_t"
End If
43
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
con.Open()
Dim cmd As OleDbCommand
Dim rdr As OleDbDataReader
cmd = New OleDbCommand("select password
from " & str1 & " where name= '" & TextBox1.Text
& "'", con)
rdr = cmd.ExecuteReader
If rdr.Read() Then
If TextBox2.Text <> "" And Form1.i =
1 Then
If TextBox2.Text =
rdr.Item(0).ToString Then
str2 = rdr.Item(0).ToString
f2.Label1.Text =
"administrator :- " & TextBox1.Text.ToUpper
f2.Show()
TextBox1.Clear()
TextBox2.Clear()
Else
MsgBox("invalid user")
TextBox1.Clear()
TextBox2.Clear()
End If
End If
If TextBox2.Text <> "" And Form1.i =
2 Then
44
If TextBox2.Text =
rdr.Item(0).ToString Then
str2 = rdr.Item(0).ToString
f12.Text = "USER :- " &
TextBox1.Text.ToUpper
f12.Show()
TextBox1.Clear()
TextBox2.Clear()
Else
MsgBox("invalid user")
TextBox1.Clear()
TextBox2.Clear()
End If
End If
Else
MsgBox("invalid user")
TextBox1.Clear()
TextBox2.Clear()
End If
con.Close()
abc:
Me.Close()
End Sub
Private Sub Cancel_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Cancel.Click
Me.Close()
45
End Sub
Private Sub LoginForm2_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
End Sub
Public Sub New()
' This call is required by the Windows
Form Designer.
InitializeComponent()
Me.StartPosition =
FormStartPosition.CenterScreen
' Add any initialization after the
InitializeComponent() call.
End Sub
Private Sub LoginForm2_Move(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
Me.Move
If Me.Text = "ADMINISTRATOR" Then
If Me.Left < 0 Then
Me.Left = 0
End If
If Me.Top < 0 Then
Me.Top = 0
46
End If
If Me.Top > 499 Then
Me.Top = 499
End If
If Me.Left > 500 Then
Me.Left = 500
End If
End If
If Me.Text = "USER" Then
If Me.Left < 110 Then
Me.Left = 110
End If
If Me.Top < 26 Then
Me.Top = 26
End If
If Me.Top > 523 Then
Me.Top = 523
End If
If Me.Left > 609 Then
Me.Left = 609
End If
End If
End Sub
End Class
47
ADMINISTRATOR ADD SCREEN
Public Class Form2
Public f1 As Form1
Public f5 As Form5
Public f6 As Form6
Public f7 As Form7
Public f8 As Form8
Public f9 As Form9
Public f3 As Form3
Public f4 As form4
Private Sub Button2_Click_1(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
f7 = New Form7
f7.Show()
End Sub
Private Sub Button1_Click_1(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
f6 = New Form6
f6.Show()
End Sub
48
Private Sub Button3_Click_1(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button3.Click
f5 = New Form5
f5.Show()
End Sub
Private Sub Button4_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button4.Click
f8 = New Form8
f8.Show()
End Sub
Private Sub Button5_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button5.Click
f9 = New Form9
f9.Show()
End Sub
Private Sub Button6_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button6.Click
Me.Close()
End Sub
Private Sub
AdministratorToolStripMenuItem_Click(ByVal sender
49
As System.Object, ByVal e As System.EventArgs)
Handles AdministratorToolStripMenuItem.Click
f3 = New Form3
If MessageBox.Show("ARE YOU SURE YOU WANT
TO CREATE A ADMINISRATOR", "create",
MessageBoxButtons.YesNo) =
Windows.Forms.DialogResult.Yes Then
f3.Show()
End If
End Sub
Private Sub UserToolStripMenuItem_Click(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles
UserToolStripMenuItem.Click
f4 = New form4
f4.Show()
End Sub
Public Sub New()
' This call is required by the Windows
Form Designer.
InitializeComponent()
Me.MdiParent = Form1
' Add any initialization after the
InitializeComponent() call.
End Sub
50
Private Sub Form2_Move(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
Me.Move
If Me.Left < 0 Then
Me.Left = 0
End If
If Me.Top < 0 Then
Me.Top = 0
End If
If Me.Top > 260 Then
Me.Top = 260
End If
If Me.Left > 370 Then
Me.Left = 370
End If
End Sub
End Class
51
ADMINISTRATOR ADD CONTECT
Imports System.Data.OleDb
Public Class Form6
Public f1 As Form1
Dim con As OleDbConnection
Private Sub Button3_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button3.Click
Me.Close()
End Sub
Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
With Me
.TextBox1.Clear()
.TextBox2.Clear()
.TextBox3.Clear()
.TextBox4.Clear()
.TextBox5.Clear()
.TextBox6.Clear()
.PictureBox1.Image =
Image.FromFile("")
End With
End Sub
52
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
PictureBox1.Image =
Image.FromFile("i2.gif")
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
If TextBox4.Text = "" Then
TextBox4.Text = "XXXX-XXXX-XXXX"
End If
con.Open()
Dim cmd As OleDbCommand
cmd = New OleDbCommand("insert into
contact values('" & TextBox1.Text & "','" &
TextBox2.Text & "','" & TextBox3.Text & "','" &
TextBox4.Text & "','" & TextBox5.Text & "','" &
TextBox6.Text & "')", con)
cmd.ExecuteNonQuery()
With Me
.TextBox1.Clear()
.TextBox2.Clear()
.TextBox3.Clear()
.TextBox4.Clear()
.TextBox5.Clear()
.TextBox6.Clear()
End With
MsgBox("data enter successfully")
53
con.Close()
End Sub
Private Sub Form6_Load(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
Me.Load
Me.MdiParent = Form1
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
End Sub
Private Sub Form6_Move(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
Me.Move
If Me.Left < 0 Then
Me.Left = 0
End If
If Me.Top < 0 Then
Me.Top = 0
End If
If Me.Top > 265 Then
Me.Top = 265
End If
If Me.Left > 434 Then
Me.Left = 434
End If
End Sub
End Class
54
ADMINISTRATOR ADD SCHEDULE
Imports System.Data.OleDb
Public Class Form7
Public f1 As Form1
Dim con As OleDbConnection
Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
Me.Close()
End Sub
Private Sub Form7_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Me.MdiParent = Form1
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
Dim i As Integer
For i = 0 To 60 Step 1
If i <= 24 Then
hh.Items.Add(i)
End If
mm.Items.Add(i)
ss.Items.Add(i)
Next
55
End Sub
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
PictureBox1.Image =
Image.FromFile("i2.gif")
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
con.Open()
Dim cmd As OleDbCommand
cmd = New OleDbCommand("insert into sched
values ('" & TextBox1.Text & "','" &
TextBox2.Text & "','" & hh.Text & ":" & mm.Text &
":" & ss.Text & "','" & r1.Value.Date & "','" &
TextBox3.Text & "','" & ComboBox1.Text & "')",
con)
cmd.ExecuteNonQuery()
With Me
.TextBox1.Clear()
.TextBox2.Clear()
.TextBox3.Clear()
.hh.Text = ""
.mm.Text = ""
.ss.Text = ""
r1.Text = ""
ComboBox1.Text = "Select the schedule
behavior"
56
End With
MsgBox("data enter successfully")
con.Close()
End Sub
Private Sub Form7_Move(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
Me.Move
If Me.Left < 0 Then
Me.Left = 0
End If
If Me.Top < 0 Then
Me.Top = 0
End If
If Me.Top > 289 Then
Me.Top = 289
End If
If Me.Left > 404 Then
Me.Left = 404
End If
End Sub
End Class
57
ADMINISTRATOR BOTH
Imports System.Data.OleDb
Public Class Form5
Public f1 As Form1
Dim i As Integer = 1
Dim con As OleDbConnection
Private Sub Form5_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
Dim i As Integer
For i = 0 To 60 Step 1
If i <= 12 Then
hh.Items.Add(i)
End If
mm.Items.Add(i)
ss.Items.Add(i)
Next
Me.MdiParent = Form1
End Sub
Private Sub Button4_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button4.Click
58
Me.Close()
End Sub
Private Sub Button5_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button5.Click
With Me
.TextBox1.Clear()
.TextBox2.Clear()
.TextBox3.Clear()
.TextBox4.Clear()
.TextBox5.Clear()
.TextBox6.Clear()
End With
End Sub
Private Sub Button3_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button3.Click
PictureBox1.Image =
Image.FromFile("i2.gif")
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
If TextBox4.Text = "" Then
TextBox4.Text = "XXXX-XXXX-XXXX"
End If
con.Open()
Dim cmd As OleDbCommand
59
cmd = New OleDbCommand("insert into
contact values('" & TextBox1.Text & "','" &
TextBox2.Text & "','" & TextBox3.Text & "','" &
TextBox4.Text & "','" & TextBox5.Text & "','" &
TextBox6.Text & "')", con)
cmd.ExecuteNonQuery()
With Me
.TextBox1.Clear()
.TextBox2.Clear()
.TextBox3.Clear()
.TextBox4.Clear()
.TextBox5.Clear()
.TextBox6.Clear()
End With
MsgBox("data enter successfully")
con.Close()
End Sub
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
PictureBox1.Image =
Image.FromFile("i2.gif")
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
con.Open()
Dim cmd As OleDbCommand
60
cmd = New OleDbCommand("insert into sched
values ('" & TextBox7.Text & "','" &
TextBox8.Text & "','" & hh.Text & ":" & mm.Text &
":" & ss.Text & "','" & r1.Value.Date & "','" &
TextBox9.Text & "','" & ComboBox1.Text & "')",
con)
cmd.ExecuteNonQuery()
With Me
.TextBox7.Clear()
.TextBox8.Clear()
.TextBox9.Clear()
.hh.Text = ""
.mm.Text = ""
.ss.Text = ""
r1.Text = ""
.ComboBox1.Text = "Select the
schedule behavior"
End With
MsgBox("data enter successfully")
con.Close()
End Sub
Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
Me.Close()
End Sub
61
Private Sub Form5_Move(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
Me.Move
If Me.Left < 0 Then
Me.Left = 0
End If
If Me.Top < 0 Then
Me.Top = 0
End If
If Me.Top > 272 Then
Me.Top = 272
End If
If Me.Left > 349 Then
Me.Left = 349
End If
End Sub
End Class
62
ADMINISTRATOR VIEW
Public Class Form2
Public f1 As Form1
Public f5 As Form5
Public f6 As Form6
Public f7 As Form7
Public f8 As Form8
Public f9 As Form9
Public f3 As Form3
Public f4 As form4
Private Sub Button2_Click_1(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
f7 = New Form7
f7.Show()
End Sub
Private Sub Button1_Click_1(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
f6 = New Form6
f6.Show()
End Sub
Private Sub Button3_Click_1(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button3.Click
63
f5 = New Form5
f5.Show()
End Sub
Private Sub Button4_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button4.Click
f8 = New Form8
f8.Show()
End Sub
Private Sub Button5_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button5.Click
f9 = New Form9
f9.Show()
End Sub
Private Sub Button6_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button6.Click
Me.Close()
End Sub
Private Sub
AdministratorToolStripMenuItem_Click(ByVal sender
As System.Object, ByVal e As System.EventArgs)
Handles AdministratorToolStripMenuItem.Click
f3 = New Form3
64
If MessageBox.Show("ARE YOU SURE YOU WANT
TO CREATE A ADMINISRATOR", "create",
MessageBoxButtons.YesNo) =
Windows.Forms.DialogResult.Yes Then
f3.Show()
End If
End Sub
Private Sub UserToolStripMenuItem_Click(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles
UserToolStripMenuItem.Click
f4 = New form4
f4.Show()
End Sub
Public Sub New()
' This call is required by the Windows
Form Designer.
InitializeComponent()
Me.MdiParent = Form1
' Add any initialization after the
InitializeComponent() call.
End Sub
65
Private Sub Form2_Move(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
Me.Move
If Me.Left < 0 Then
Me.Left = 0
End If
If Me.Top < 0 Then
Me.Top = 0
End If
If Me.Top > 260 Then
Me.Top = 260
End If
If Me.Left > 370 Then
Me.Left = 370
End If
End Sub
Private Sub Form2_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
End Sub
End Class
66
ADMINISTRATOR SEE CONTECT
Imports System.Data.OleDb
Public Class Form10
Dim con As OleDbConnection
Dim str1, str2, str3 As String
Private Sub Form10_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Me.MdiParent = Form1
If Form12.sc = True Then
Button1.Enabled = True
Button2.Enabled = True
ElseIf Form12.sc = False Then
Button1.Enabled = False
Button2.Enabled = False
End If
str3 = TextBox4.Text
End Sub
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
con.Open()
Dim cmd1, cmd2 As OleDbCommand
67
cmd1 = New OleDbCommand("delete from
contact where mob_no='" & str3 & "'", con)
cmd1.ExecuteNonQuery()
cmd2 = New OleDbCommand("insert into
contact values('" & TextBox1.Text & "','" &
TextBox3.Text & "','" & TextBox4.Text & "','" &
TextBox5.Text & "','" & TextBox6.Text & "','" &
TextBox2.Text & "')", con)
cmd2.ExecuteNonQuery()
With Me
.TextBox1.Clear()
.TextBox2.Clear()
.TextBox3.Clear()
.TextBox4.Clear()
.TextBox5.Clear()
.TextBox6.Clear()
End With
MsgBox("data updated")
con.Close()
End Sub
Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
con.Open()
Dim cmd1 As OleDbCommand
68
cmd1 = New OleDbCommand("delete from
contact where mob_no ='" & TextBox4.Text & "'",
con)
cmd1.ExecuteNonQuery()
MsgBox("data deleted")
con.Close()
End Sub
Private Sub Button3_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button3.Click
Me.Close()
End Sub
Private Sub Form10_Move(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
Me.Move
If Me.Left < 0 Then
Me.Left = 0
End If
If Me.Top < 0 Then
Me.Top = 0
End If
If Me.Top > 289 Then
Me.Top = 289
End If
If Me.Left > 431 Then
Me.Left = 431
End If
69
End Sub
Private Sub Button4_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
End Sub
End Class
70
ADMINISTRATOR SHOW SCHEDULE
Imports System.Data.OleDb
Public Class Form11
Public f1 As Form1
Dim con As OleDbConnection
Dim str As String
Private Sub Form11_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Me.MdiParent = Form1
If Form12.sc = True Then
Button1.Enabled = True
Button3.Enabled = True
ElseIf Form12.sc = False Then
Button1.Enabled = False
Button3.Enabled = False
End If
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
str = TextBox2.Text
con.Open()
Dim i As Integer
For i = 0 To 60 Step 1
If i <= 12 Then
hh.Items.Add(i)
71
End If
mm.Items.Add(i)
ss.Items.Add(i)
Next
End Sub
Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
Me.Close()
End Sub
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
con.Open()
Dim cmd, cmd1 As OleDbCommand
cmd1 = New OleDbCommand("delete from
sched where sc_title='" & str & "'", con)
cmd = New OleDbCommand("insert into sched
values ('" & TextBox1.Text & "','" &
TextBox2.Text & "','" & hh.Text & ":" & mm.Text &
":" & ss.Text & "','" & r1.Value.Date & "','" &
TextBox3.Text & "','" & ComboBox1.Text & "')",
con)
72
cmd.ExecuteNonQuery()
With Me
.TextBox1.Clear()
.TextBox2.Clear()
.TextBox3.Clear()
.hh.Text = ""
.mm.Text = ""
.ss.Text = ""
r1.Text = ""
.ComboBox1.Text = "select the
behavior"
End With
MsgBox("data enter successfully")
con.Close()
End Sub
Private Sub Button3_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button3.Click
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
con.Open()
Dim cmd1 As OleDbCommand
cmd1 = New OleDbCommand("delete from
sched where sc_title='" & str & "'", con)
cmd1.ExecuteNonQuery()
MsgBox("data deleted")
con.Close()
73
End Sub
Private Sub Form11_Move(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
Me.Move
If Me.Left < 0 Then
Me.Left = 0
End If
If Me.Top < 0 Then
Me.Top = 0
End If
If Me.Top > 263 Then
Me.Top = 263
End If
If Me.Left > 366 Then
Me.Left = 366
End If
End Sub
Private Sub
ComboBox1_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles ComboBox1.SelectedIndexChanged
End Sub
End Class
74
USER WELCOME SCREEN
Public Class Form12
Private Sub Form12_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Me.MdiParent = Form1
End Sub
Private Sub Button6_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
End Sub
Friend Shared sc As Boolean = False
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
Dim f8 As New Form8
Dim f9 As New Form9
If RadioButton1.Checked = True Then
sc = False
f8.Show()
End If
If RadioButton2.Checked = True Then
sc = False
f9.Show()
End If
End Sub
75
Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
Me.Close()
End Sub
Private Sub Form12_Move(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
Me.Move
If Me.Left < 0 Then
Me.Left = 0
End If
If Me.Top < 0 Then
Me.Top = 0
End If
If Me.Top > 420 Then
Me.Top = 420
End If
If Me.Left > 520 Then
Me.Left = 520
End If
End Sub
End Class
76
FINDING SCREEN-1
Imports System.Data.OleDb
Public Class Form8
Public f10 As Form10
Dim con As OleDbConnection
Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
Me.Close()
End Sub
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
Me.PictureBox1.Image =
Image.FromFile("i3.gif")
If TextBox1.Text = "" Then
MsgBox("plese enter the title to show
the information")
Else
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
con.Open()
Dim cmd As OleDbCommand
Dim rdr As OleDbDataReader
77
cmd = New OleDbCommand("select name
from contact where name like ('" & TextBox1.Text
& "%')", con)
rdr = cmd.ExecuteReader
While rdr.Read
ComboBox1.Items.Add(rdr.Item(0).ToString)
End While
con.Close()
End If
End Sub
Private Sub Form8_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Me.MdiParent = Form1
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
End Sub
Private Sub Button3_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button3.Click
f10 = New Form10
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
con.Open()
78
Dim cmd As OleDbCommand
Dim rdr As OleDbDataReader
cmd = New OleDbCommand("select * from
contact where name = '" & ComboBox1.Text & "'",
con)
rdr = cmd.ExecuteReader
If rdr.Read() Then
f10.TextBox1.Text =
rdr.Item(0).ToString
f10.TextBox3.Text =
rdr.Item(1).ToString
f10.TextBox4.Text =
rdr.Item(2).ToString
f10.TextBox5.Text =
rdr.Item(3).ToString
f10.TextBox6.Text =
rdr.Item(4).ToString
f10.TextBox2.Text =
rdr.Item(5).ToString
f10.Show()
End If
con.Close()
Me.Close()
End Sub
Private Sub Form8_Move(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
Me.Move
If Me.Left < 0 Then
79
Me.Left = 0
End If
If Me.Top < 0 Then
Me.Top = 0
End If
If Me.Top > 349 Then
Me.Top = 349
End If
If Me.Left > 485 Then
Me.Left = 485
End If
End Sub
End Class
80
FINDING SCREEN-2
Imports System.Data.OleDb
Public Class Form9
Public f11 As Form11
Dim con As OleDbConnection
Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button2.Click
Me.Close()
End Sub
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
Me.PictureBox1.Image =
Image.FromFile("i3.gif")
If TextBox1.Text = "" Then
MsgBox("please enter the title to
show the information")
Else
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
con.Open()
Dim cmd As OleDbCommand
Dim rdr As OleDbDataReader
81
cmd = New OleDbCommand("select
sc_name from sched where sc_name like ('" &
TextBox1.Text & "%')", con)
rdr = cmd.ExecuteReader
While rdr.Read
ComboBox1.Items.Add(rdr.Item(0).ToString)
End While
con.Close()
End If
End Sub
Private Sub Form9_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Me.MdiParent = Form1
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
End Sub
Private Sub Button3_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button3.Click
f11 = New Form11
con = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0
;Data Source=my database.mdb")
con.Open()
82
Dim cmd As OleDbCommand
Dim rdr As OleDbDataReader
cmd = New OleDbCommand("select * from
sched where sc_name = '" & ComboBox1.Text & "'",
con)
rdr = cmd.ExecuteReader
rdr.Read()
Dim t As String
Dim t1 As New Date
f11.TextBox1.Text = rdr.Item(0).ToString
f11.TextBox2.Text = rdr.Item(1).ToString
t = rdr.Item(2).ToString
t1 = CDate(t)
f11.hh.Text = t1.Hour
f11.mm.Text = t1.Minute
f11.ss.Text = t1.Second
f11.r1.Text = rdr.Item(3).ToString
f11.TextBox3.Text = rdr.Item(4).ToString
f11.ComboBox1.Text = rdr.Item(5).ToString
con.Close()
f11.Show()
Me.Close()
End Sub
Private Sub Form9_Move(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
Me.Move
If Me.Left < 0 Then
Me.Left = 0
83
End If
If Me.Top < 0 Then
Me.Top = 0
End If
If Me.Top > 330 Then
Me.Top = 330
End If
If Me.Left > 493 Then
Me.Left = 493
End If
End Sub
End Class
84
Respected Teacher, Thankyou For Giving Tour Valuable Time To My
Project File On MEETING SCHEDULER.
Subject Teachers Signature:
Submitted By: