Timer is not stopping?
问题 I have a timer that sets a textbox text to vbnullstring after 5 seconds, this is to prevent the user from typing since what they have to do is scan a barcode, now after reading the barcode, the scanner will do an enter key so I have this code 'TextBox Keypress event Timer1.Start() 'TextBox keydown event If e.KeyCode = Keys.Enter Then Timer1.Stop() Timer1.Dispose() 'Tried adding this but still doesn't work End if I don't have anything on my code that would make the keypress event fire again