VB icon

a ***VERY DIFFERENT*** Screen Saver

Email
Submitted on: 1/4/2015 6:12:00 PM
By: Im_[B]0ReD (from psc cd)  
Level: Beginner
User Rating: By 21 Users
Compatibility: VB 5.0, VB 6.0
Views: 2326
 
     this is a totally differn't type of screensaver than what i've found here, this is actually pretty funny to just sit back and watch =-)
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
				
'**************************************
' Name: a ***VERY DIFFERENT*** Screen Saver
' Description:this is a totally differn't type of screensaver than what i've found here, this is actually pretty funny to just sit back and watch =-)
' By: Im_[B]0ReD (from psc cd)
'
' Assumes:add a timer (Timer1) with an interval of 175
'**************************************

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Unload Me
End Sub
Private Sub Form_KeyPress(KeyAscii As Integer)
Unload Me
End Sub
Private Sub Form_Load()
Form1.BackColor = vbBlack
Form1.BorderStyle = 0
Timer1.Interval = 175
End Sub
Private Sub Timer1_Timer()
ht = RandomNum(Min, Max)
wh = RandomNum(Min, Max)
Form1.Move wh, ht
Form1.Height = ht
Form1.Width = wh
Form1.Height = wh
Form1.Width = ht
End Sub
Public Function RandomNum(Min, Max) As Long
RandomNum = Int((Max - Min + 9500) * Rnd + Min)
End Function


Other 4 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

7/23/2015 8:49:43 PMStone

the code is not working. line 10 is missing a ")".
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.