Private Sub Frmscreensaver_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
        Static start As Boolean = True
        Static start_x, start_y As Integer

        If (start) Then
            start_x = e.X
            start_y = e.Y
        End If
        start = False


        If (Math.Abs(start_x - e.X) > 50 Or Math.Abs(start_y - e.Y) > 50) Then
            Me.Close()
        End If
    End Sub

文章標籤
全站熱搜
創作者介紹
創作者 alen1985 的頭像
alen1985

1與0的世界

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