Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

Form 1:Main log in page

Private Sub Command1_Click()


Form1.Show
Unload Form12
End Sub
Private Sub Command2_Click()
Form17.Show
Unload Form12
End Sub

Form 2:Customer login


Dim rec As New ADODB.Recordset
Dim con As New ADODB.Connection
Private Sub Command1_Click()
Dim id As Integer
Command2.Visible = False
rec.Open "select * from details where UserName = '" + Text1 + "'", con, adOpenKeyset, adLockReadOnly
'Module1.id = Int(Val(rec.Fields(0).Value))
If Text2 = rec.Fields(3).Value Then
Form7.Text1.Text = "0"
Form9.Show
Unload Form1
Else
Text1.Enabled = False
Text2.Enabled = False
Command1.Enabled = False
Command2.Visible = True
MsgBox "Username and Password not match"
rec.Close
Module1.con.Close
End If
End Sub
Private Sub Command2_Click()
Label4.Visible = False
Text1.Enabled = True
Text2.Enabled = True
Text1.Text = Clear
Text2.Text = Clear
End Sub
Private Sub Command3_Click()
Unload Form1
Form6.Show
End Sub
Private Sub Form_Load()
con.Provider = "sqloledb"
con.Open "Server=MP-PC\SAUMYA;Database=connectivity;Trusted_Connection=yes"
'Call Module1.connect
Form7.Text2 = Date
End Sub
Private Sub Form_Unload(Cancel As Integer)
con.Close
End Sub
Private Sub Text1_Change()
If Len(Text1) > 0 Then
Command1.Enabled = True
End If
If Len(Text1) <= 0 Then
Command1.Enabled = False
End If
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii > 64 And KeyAscii < 91 Or KeyAscii > 96 And KeyAscii < 123 Or KeyAscii > 47 And KeyAscii
< 58 Or KeyAscii = 32 Or KeyAscii = 8 Then KeyAscii = KeyAscii Else KeyAscii = 0
End Sub
Private Sub Timer1_Timer()
If Picture1.Visible = True Then
Picture1.Visible = False
Picture2.Visible = True
Else
If Picture2.Visible = True Then
Picture2.Visible = False
Picture1.Visible = True
End If
End If
End Sub

Form 3:Home page


Private Sub Command1_Click()
Form9.Hide
Form10.Show
End Sub

Private Sub Command2_Click()


Form9.Hide
Form10.Show
End Sub

Private Sub Command3_Click()


Form9.Hide
Form11.Show
End Sub
Private Sub Command4_Click()
Form9.Hide
Form11.Show
End Sub

Private Sub Form_Load()


Picture8.Picture = LoadPicture(App.Path + "\888.jpg")
Picture1.Picture = LoadPicture(App.Path + "\g4.jpg")
Picture1.Visible = False

End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)


Command1.Visible = False
Command2.Visible = False
Command3.Visible = False
Command4.Visible = False
End Sub

Private Sub Label3_Click()


Form2.Show
Form9.Hide
End Sub

Private Sub Label5_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)


Command1.Visible = True
Command2.Visible = True
End Sub

Private Sub Label6_Click()


Command3.Visible = True
Command4.Visible = True
End Sub

Private Sub Timer1_Timer()


If Picture8.Visible = True Then
Picture8.Visible = False
Picture1.Visible = True
Else
If Picture1.Visible = True Then
Picture1.Visible = False
Picture8.Visible = True
End If
End If
End Sub

Form 4:About us
Private Sub Command1_Click()
Form10.Hide
Form9.Show
Form9.Command1.Visible = False
Form9.Command2.Visible = False
End Sub
Form 5:Catering
Private Sub Command1_Click()
Form11.Hide
Form9.Show
Form9.Command3.Visible = False
Form9.Command4.Visible = False
End Sub

Form 6: Main menu

Private Sub C1_Click()


Form3.Show
Unload Form2
End Sub
Private Sub C2_Click()
Form4.Show
Unload Form2
End Sub
Private Sub C3_Click()
Form5.Show
Unload Form2
End Sub
Private Sub Form_Load()
Picture1.Picture = LoadPicture(App.Path + "\i1.jpg")
Picture2.Picture = LoadPicture(App.Path + "\i2.jpg")
Picture3.Picture = LoadPicture(App.Path + "\i5.jpg")
Picture2.Visible = False
Picture3.Visible = False
Picture4.Picture = LoadPicture(App.Path + "\w1.jpg")
Picture5.Picture = LoadPicture(App.Path + "\w2.jpeg")
Picture6.Picture = LoadPicture(App.Path + "\w7.jpg")
Picture5.Visible = False
Picture6.Visible = False
Picture7.Picture = LoadPicture(App.Path + "\s3.jpg")
Picture8.Picture = LoadPicture(App.Path + "\s5.jpg")
Picture9.Picture = LoadPicture(App.Path + "\s6.jpg")
Picture8.Visible = False
Picture9.Visible = False
End Sub
Private Sub Timer1_Timer()
If Picture1.Visible = True Then
Picture1.Visible = False
Picture2.Visible = True
Else
If Picture2.Visible = True Then
Picture2.Visible = False
Picture3.Visible = True
Else
If Picture3.Visible = True Then
Picture3.Visible = False
Picture1.Visible = True
End If
End If
End If
If Picture4.Visible = True Then
Picture4.Visible = False
Picture5.Visible = True
Else
If Picture5.Visible = True Then
Picture5.Visible = False
Picture6.Visible = True
Else
If Picture6.Visible = True Then
Picture6.Visible = False
Picture4.Visible = True
End If
End If
End If
If Picture7.Visible = True Then
Picture7.Visible = False
Picture8.Visible = True
Else
If Picture8.Visible = True Then
Picture8.Visible = False
Picture9.Visible = True
Else
If Picture9.Visible = True Then
Picture9.Visible = False
Picture7.Visible = True
End If
End If
End If
End Sub

Form 7:Ice creams menu


Private Sub Command1_Click()
Unload Form3
Form9.Show
End Sub
Private Sub Command3_Click()
Unload Form3
Form4.Show
End Sub
Private Sub Command4_Click()
Unload Form3
Form5.Show
End Sub
Private Sub Command5_Click()
Unload Form3
Form7.Show
End Sub
Private Sub Command6_Click()
Form1.Text1.Text = Clear
Form1.Text2.Text = Clear
Unload Form3
Form1.Show
End Sub
Private Sub Command7_Click(

You might also like