Nice thanks for share

Code:
Public Class Form1
    Private Declare Function BlockInput Lib "user32" (ByVal fBlock As Long) As Long
    Const API_FALSE As Long = 0&
    Const API_TRUE As Long = 1&

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Call BlockInput(API_TRUE)
        Timer1.Start()
        Timer1.Interval = 10000

    End Sub

    Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick

        Call BlockInput(API_FALSE)
        Timer1.Stop()
        Me.Close()
    End Sub
End Class
hier nochmal mit timer angepasst

einfach ne timer einfügen.