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
文章標籤
全站熱搜
創作者介紹
創作者 colud77 的頭像
colud77

I-Cloud程式攻略

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