So hello guys, I am new to the forum.
I got a problem with VB 2010!
I can't make something work!
Check out this animated picture:



The first program with password V2GaiaV1 is the program I wanna make,
The second program with the password GaiaV36 is the program I have made!

The code at this point is ->
Code:
If txt.Text = "GaiaV36" Then

            
            passtxt.Visible = False
            Proceed.Enabled = False
            accepted.Visible = True
            accepted.Enabled = False
            txt.Enabled = False
            Proceed.Enabled = False
            loading.Visible = True
            ProgressBar1.Visible = True

            System.Threading.Thread.Sleep(5000)

            a = MsgBox BLA BLA BLA
So I have the Sleep after Porgressbar1 visible & loading visible
And they become visible after a (vb error messagebox) get's on the surface.
I know this wouldn't be the code but at least this would look more like a real error, it wouldn't even load the first file if they showed up before the error slept for 5 seconds and then enable the error.

So what can I do to make it load like 70% and then throw up an error?
Can you help me?
Thanks in regards <3