比如,keypress事件,写代码
static ptime As Date = Nothing
Dim sp As TimeSpan = Date.now - ptimeptime = Date.nowIf sp.TotalMilliseconds > 50 Then e.Sender.text = "" e.Cancel = TrueEnd If