Results 1 to 22 of 22

Thread: Disable input during processing.

Threaded View

  1. #9
    Junior Member
    Join Date
    Feb 2011
    Posts
    27

    Re: Disable input during processing.

    Well, if you're still looking I think you just have to reference the buttons directly in code:
    Code:
        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
    I tested this and as soon as I clicked Button1 it became disabled for 1 second
    Last edited by GDeRousse; Mar 24th, 2011 at 01:29 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width