visual basic 6.0 tutorial




















buat seperti ini........

ne kode nya:


'perintah untuk melihat file system
Private Sub Lihat()
On Error Resume Next
RegDword "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden", 1
RegDword "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden", 1
RegDword "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt", 0
MsgBox "ReFrEsH"
End Sub

'perintah untuk menyembunyikan file system
Private Sub Sembunyi()
On Error Resume Next
RegDword "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden", 0
RegDword "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden", 0
RegDword "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt", 1
MsgBox "ReFrEsH"
End Sub

'fungsi untuk merubah nilai pada registry
Function RegDword(HiveAndKey As String, Value As Integer)
Dim newbie As Variant
Set newbie = CreateObject("Wscript.Shell")
newbie.regwrite HiveAndKey, Value, "REG_DWORD"
End Function

Private Sub cmdKeluar_Click()
MsgBox "HaCkEr78_yU"
'keluar
Unload Me
End Sub

Private Sub cmdLihat_Click()
'memanggil perintah lihat
Call Lihat
End Sub

Private Sub cmdSembunyi_Click()
'memanggil perintah sembunyi
Call Sembunyi
End Sub

Private Sub Command4_Click()
If Text1.Text = "irfan" Then
cmdLihat.Enabled = True
cmdSembunyi.Enabled = True
End If
MsgBox "BeRhAsIl", vbOKOnly
End Sub

Private Sub Command5_Click()
MsgBox "dIrAhAsIaKaN"
End Sub

coba lo .....variasi pasti cantik......

2 komentar:

Mute mengatakan...

Appan tuch fungsinya..
baru segitu masih copo bangeets..

Irfan Dihati mengatakan...

tuh fungsinya untuk melihat file - file yang di sembunyikan..
hahahahaha
namanya masih tutorial dasar ntar dikasih deh yang mode expert
tuh pun kalo kamu ngerti logika pemogramannya