Thursday, October 8, 2009
Thursday, September 17, 2009
Thursday, August 6, 2009
My Home.
Activity 1
Private Sub Image2_Click()
Coins.Visible = False
lbl1.Caption = Int(Rnd * 10)
lbl2.Caption = Int(Rnd * 10)
lbl3.Caption = Int(Rnd * 10)
If (lbl1.Caption = 7) Or (lbl2.Caption = 7) Or (lbl3.Caption = 7) Then
Coins.Visible = True
Beep
End If
End Sub
Private Sub mnuAuthor_Click()
frmauthor.Show
Me.Hide
End Sub
Private Sub mnuBlue_Click()
FrmLucky7.BackColor = RGB(10, 10, 150)
End Sub
Private Sub mnuClose_Click()
End
End Sub
Private Sub mnuGreen_Click()
FrmLucky7.BackColor = RGB(10, 150, 10)
End Sub
Private Sub mnuOrange_Click()
FrmLucky7.BackColor = RGB(255, 121, 0)
End Sub
Private Sub mnuPink_Click()
FrmLucky7.BackColor = RGB(255, 201, 255)
End Sub
Private Sub mnuRed_Click()
FrmLucky7.BackColor = RGB(255, 0, 0)
End Sub
Private Sub mnuViolet_Click()
FrmLucky7.BackColor = RGB(99, 0, 86)
End Sub
Private Sub mnuYellow_Click()
FrmLucky7.BackColor = RGB(255, 255, 0)
End Sub
Activity II : Click To Win WIth Backgrounds.
Codes:
Dim RGBValue As Integer
Private Sub Image1_Click()
End
End Sub
Private Sub Image2_Click()
Coins.Visible = False
lbl1.Caption = Int(Rnd * 10)
lbl2.Caption = Int(Rnd * 10)
lbl3.Caption = Int(Rnd * 10)
If (lbl1.Caption = 7) Or (lbl2.Caption = 7) Or (lbl3.Caption = 7) Then
Coins.Visible = True
MsgBox "yOu wOn", vbInformation, "cOnGraTiOnz!..."
Beep
Else
MsgBox "bEtTer LucK nExt tiMe", vbExclamation, "tRy agAin..."
End If
End Sub
Private Sub mnuAuthor_Click()
frmauthor.Show
frmlucky7.Hide
End Sub
Private Sub mnuBlue_Click()
frmlucky7.BackColor = RGB(10, 10, 150)
End Sub
Private Sub mnuClose_Click()
End
End Sub
Private Sub mnuGreen_Click()
frmlucky7.BackColor = RGB(10, 150, 10)
End Sub
Private Sub mnuOrange_Click()
frmlucky7.BackColor = RGB(255, 121, 0)
End Sub
Private Sub mnuPink_Click()
frmlucky7.BackColor = RGB(255, 201, 255)
End Sub
Private Sub mnuRed_Click()
frmlucky7.BackColor = RGB(255, 0, 0)
End Sub
Private Sub mnuViolet_Click()
frmlucky7.BackColor = RGB(99, 0, 86)
End Sub
Private Sub mnuYellow_Click()
frmlucky7.BackColor = RGB(255, 255, 0)
End Sub
Code For Author:
Private Sub Image2_Click()
End
End Sub
Private Sub Label4_Click()
frmlucky7.Show
Me.Hide
End Sub
Private Sub VScrollRed_Change()
Picture1.BackColor = RGB(VScrollRed.Value, VScrollGreen.Value, VScrollBlue.Value)
Label1.Caption = "Red: " & VScrollRed.Value
End Sub
Private Sub VScrollGreen_Change()
Picture1.BackColor = RGB(VScrollRed.Value, VScrollGreen.Value, VScrollBlue.Value)
Label2.Caption = "Green: " & VScrollGreen.Value
End Sub
Private Sub VScrollBlue_Change()
Picture1.BackColor = RGB(VScrollRed.Value, VScrollGreen.Value, VScrollBlue.Value)
Label3.Caption = "Blue: " & VScrollBlue.Value
End Sub