Kamis, 11 Oktober 2012

VB 6: Menyembunyikan Menu Start Windows

-->
Berikut ini artikel yang saya tulis; bagaimana menyembunyikan menu start Windows...
Lihat gambar di bawah ini:
-->
Copas aja coding di bawah ini

 
-->
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
(ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function ShowWindow Lib "user32" (ByVal hWnd As Long, ByVal nCmdShow As Long) As Long

Private Sub Command1_Click()
OurParent& = FindWindow("Shell_TrayWnd", "")
OurHandle& = FindWindowEx(OurParent&, 0, "Button", vbNullString)
ShowWindow OurHandle&, 0
End Sub

Private Sub Command2_Click()
OurParent& = FindWindow("Shell_TrayWnd", "")
OurHandle& = FindWindowEx(OurParent&, 0, "Button", vbNullString)
ShowWindow OurHandle&, 5
End Sub


Semoga bermanfaat...
Jangan lupa komentarnya ya makasih
 

Tidak ada komentar:

Posting Komentar

AHA..