Public Class Form1
   Private Declare Function SetForegroundWindow Lib "user32" Alias "SetForegroundWindow" (ByVal hwnd As Long) As Long
 
   Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
      Timer1.Interval = 300
      Timer1.Enabled = True
   End Sub
 
   Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
      SetForegroundWindow(Me.Handle)
   End Sub
End Class
arrow
arrow
    全站熱搜

    colud77 發表在 痞客邦 留言(0) 人氣()