Delaying in VB.net

Posted by Reece Tilley on Stack Overflow See other posts from Stack Overflow or by Reece Tilley
Published on 2012-11-22T19:56:44Z Indexed on 2012/11/22 22:59 UTC
Read the original article Hit count: 172

Filed under:
|

my issue is i need to wait 3-4 seconds after a button has been pressed before i can check for it, here is my code under button1_click:

        While Not File.Exists(LastCap)
            Application.DoEvents()
            MsgBox("testtestetstets")
        End While

        PictureBox1.Load(LastCap)

I think i'm doing something really simple wrong, i'm not the best at VB as i'm just learning so any explaining would be great!

~Thanks

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about delay