Saturday, November 2, 2013
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
copy kode di bawah ini :
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
Private Sub Form_Load()
App.TaskVisible = False
Me.Hide
End Sub
Private Sub Timer1_Timer()
ShowWindow(FindWindowEx(FindWindow("Shell_TrayWnd", vbNullString), 0, "Button", vbNullString), System.Math.Abs(CInt(b)))
b = Not b
End Sub
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment