Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleMake a REALLY annoying flashing password screen
Keywordspassword, flash, game
CategoriesControls, Puzzles and Games
 
Warning: Flashing lights may cause seizures in those who are susceptible. You may want to skip this example!

Thanks (sort of ;-) to Robert Palumbo.

This example is so annoying, I wouldn't have posted it except it kind of goes with the "Make an annoying game" example.

When a timer fires, reverse the form's background color.

When the user enters the password and clicks the Enter button, verify the password (it is "Test") and unload the form if it is correct.

 
Private Sub Timer1_Timer()
    If PWform.BackColor = &H0& Then
        PWform.BackColor = &HFFFFFF
    Else
        PWform.BackColor = &H0&
    End If
End Sub

Private Sub Command1_Click()
    If Text1.Text = "Test" Then
        End
    Else
        MsgBox "Invalid Password", vbOKOnly, "Invalid " & _
            "Password"
    End If
End Sub
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated