Well, if you're still looking I think you just have to reference the buttons directly in code:
I tested this and as soon as I clicked Button1 it became disabled for 1 secondCode:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Button1.Enabled = False System.Threading.Thread.Sleep(1000) Button1.Enabled = True End Sub




Reply With Quote