Saturday, July 4, 2009

Tugas Vb Sem II

Form Login
















Tabel Login

















Kode Program

Option Explicit
Dim Password As String
Dim x As Integer
Private Sub CMD_Keluar_Click()
End
End Sub

Private Sub CMD_OK_Click()
If Text_user_name = "" Then
MsgBox "Nama Anda Harus di Isi Terlebih Dahulu!", vbOKOnly + vbCritical, "SALAH"
End If
cekpassword

End Sub

Private Sub cekpassword()
If Text_password = Password Then
MsgBox "akses Telah Di Terima!Selamat Datang," & UCase(Text_user_name), , "OK"
Unload Me
Form_menu_utama.Show
Else
If x = 3 Then
MsgBox "Anda Tidak Berhak Mengoprasikan Aplikasi ini", vbOKOnly + vbCritical, "MAAF"
End
Else
MsgBox "password salah,silahkan masukan kembali!" & Chr(10) & "kesempatan anda " & 3 - x & "lagi", vbOKOnly + vbCritical, "Password salah"
x = x + 1
Text_password.SetFocus
Exit Sub
End If
End If
End Sub
Private Sub form_activate()
Password = "stmik"
Text_user_name.SetFocus
x = 1
End Sub

Private Sub text_password_keypress(keyascii As Integer)
If keyascii = 13 Then
CMD_OK_Click
End If
End Sub



Private Sub text_user_name_keypress(keyascii As Integer)
If keyascii = 13 Then
Text_password.SetFocus
End If
End Sub

Tuesday, March 31, 2009

layout





<body>





The Writer
Deepest Desires
Deep Thoughts
Talk to me
The Others






Even in my heart, I see


You're not being true to me

Deep within my soul, I feel

Nothing's like it used to be



Sometimes I wish I could, turn back time

Impossible as it may seem

But I wish I could, so bad, baby...


Quit playing games with my heart



Quit playing games with my heart

Before you tear us apart (With my heart)

Quit playing games with my heart

I should've known from the start

Before you got in my heart (From my heart)


Quit tearing us apart (From my heart)

Quit playing games with my heart.




♥♥♥