Kamis, 28 Juni 2012
Cara Membuat Start Button berkedip VB 6.0
Code Di Bawah Digunakan Untuk membuat Start Button Di Taskbar Bisa Berkedip..
Berikut TahapNya:
-:>Tambahkan 1 kontrol Timer (Enabled=True; Interval=300) ke dalam Form tersebut
Di bagian '(Declarations)' dari Form ketikkan :
Private Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32.dll" 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.dll" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Dim b As Boolean
Di bagian Form_Load ketikkan :
App.TaskVisible = False
Me.Hide
Lalu di bagian Timer1_Timer ketikkan :
ShowWindow(FindWindowEx(FindWindow("Shell_TrayWnd", vbNullString), 0, "Button", vbNullString), System.Math.Abs(CInt(b)))
b = Not b
Langganan:
Posting Komentar (Atom)