Important alert: (current site time 7/16/2013 1:24:09 AM EDT)
 

VB icon

_Screen Freeze JOKE

Email
Submitted on: 3/21/2002 11:52:53 PM
By: poop_4_brains  
Level: Beginner
User Rating: By 17 Users
Compatibility: VB 6.0
Views: 41056
(About the author)
 
     a cool little joke that makes it look like the screen is froze, and it stays on top so nothing works. please **VOTE**!!!! to use the code set the selected form's borderstyle to none, then insert code, then run it. just click to get out of the prog
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
'**************************************
' Name: _Screen Freeze JOKE
' Description:a cool little joke that makes it look like the screen is froze, and it stays on top so nothing works. please **VOTE**!!!!
to use the code set the selected form's borderstyle to none, then insert code, then run it. just click to get out of the prog
' By: poop_4_brains
'
' Inputs:open the prog
'
'This code is copyrighted and has' limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=32939&lngWId=1'for details.'**************************************

'Screen Freeze Joke
'by Kevin Fleet
'March 21, 2002
'(KEVCOM)
'******************
'api functions to draw
Private Declare Function GetDC Lib "user32" ( _
ByVal hwnd As Long) As Long
Private Declare Function BitBlt Lib "gdi32" ( _
ByVal hDestDC As Long, _
ByVal X As Long, _
ByVal Y As Long, _
ByVal nWidth As Long, _
ByVal nHeight As Long, _
ByVal hSrcDC As Long, _
ByVal xSrc As Long, _
ByVal ySrc As Long, _
ByVal dwRop As Long) As Long
Private Sub Form_Load()
Me.AutoRedraw = True 'so that the screen's image stays on the form
Me.Left = 0 'set the size
Me.Top = 0
Me.Width = Screen.Width
Me.Height = Screen.Height
BitBlt Me.hDC, 0, 0, Screen.Width, Screen.Height, GetDC(0), 0, 0, vbSrcCopy
'copy the screens image onto the form so it will look frozen
Me.Visible = True
Do 'loop the stay on top thing so its always on top
Me.ZOrder 0
DoEvents
Loop
End Sub
'REMOVE THIS FOR ACTUAL USE OF JOKE \/ (so the user cant get out)
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
End 'this is here so you can try the code and still vote afterwards
'to make it even better disable ctrl+alt+del and alt+f4
'get api to keep the form ontop
End Sub


Other 65 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
3/22/2002 12:32:42 AMTheNeophyte

cool! May I know what does the 2 API function do?
(If this comment was disrespectful, please report it.)

 
3/22/2002 12:47:03 AMOdin

How could you screw up anyone's machine with this code? It doesn't do anything by take a "screenshot" and display it.
(If this comment was disrespectful, please report it.)

 
3/22/2002 8:35:45 AMelTurcin

Kevin...

are u 10 years old?
(If this comment was disrespectful, please report it.)

 
3/22/2002 8:45:59 AMJAPOGS

NO, HE'S 11 BY NOW LOL...
(If this comment was disrespectful, please report it.)

 
3/30/2002 7:08:04 AMMohamed Ziada

Sorry man,
But I've writen this code before by my own self long time ago...
It's however slight different than this one..
If you wanna see it please send me at my email..
mrziada@yahoo.com
(If this comment was disrespectful, please report it.)

 
5/26/2002 3:20:47 PMCyril Zhang

LOL! :-D
I'm the creator of Handyman 2002, remember? This is funny!

(If this comment was disrespectful, please report it.)

 
7/4/2002 12:00:32 AMMian Naeem

user comments have made this really funny.
I enjoyed the comments!
(If this comment was disrespectful, please report it.)

 
7/10/2002 10:05:20 AMSpawn

C00L C00L C00L!!!

Rulleeezzz!
(If this comment was disrespectful, please report it.)

 
9/9/2002 11:10:33 AMStefan Carter

this code defiantly doesnt freeze the screen
(If this comment was disrespectful, please report it.)

 
9/17/2002 1:04:12 AM

cool
(If this comment was disrespectful, please report it.)

 
9/23/2002 3:38:58 PM

Can Someone tell me how to disable the ctrl+alt+delete function

(If this comment was disrespectful, please report it.)

 
11/12/2002 6:17:57 AM

Cool....!!!
(If this comment was disrespectful, please report it.)

 
12/27/2002 4:04:13 PMSoulteck

cool whut does it matter hes 10 i m 11 i kinda liked ya the joke i pissed some friends of me real of whit it LOL
(If this comment was disrespectful, please report it.)

 
1/1/2003 6:57:37 PMExcelBlue (Mark Lu)

Didn't trick me. I know the screen doesn't freeze like that. By the way it does stuff, I found out quick. Although it really tricked the unknowledegable.
(If this comment was disrespectful, please report it.)

 
3/26/2003 11:32:03 PM

Thanks, For your Code
(If this comment was disrespectful, please report it.)

 
9/4/2003 9:24:44 AM

its very good make more
(If this comment was disrespectful, please report it.)

 
12/3/2003 8:27:30 PM

You told me to vote so I will! Nice program!!!!!! I love it! 5!
(If this comment was disrespectful, please report it.)

 
1/18/2004 9:31:15 AMliwo

One problem remains...If you use the extended desktop and have a second monitor only ONE monitor will freeze, the other one will not...A very funny freeze...:)
(If this comment was disrespectful, please report it.)

 
4/4/2005 4:14:04 AMbammylove

My name is Victoria and I work for a software company,This is a nice Job you have done,I have voted for you and i am giving you 5 globes for this great work.\i will want you to keep it up.I will like you to send me the compiled version of your software.I will love to have youre work on my PC. My email address is bammington@yahoo.com Once again,keep it up and dont forget to send it to me,pls .I love it
(If this comment was disrespectful, please report it.)

 
4/30/2005 3:15:30 AM

what?
(If this comment was disrespectful, please report it.)

 
4/30/2005 5:13:58 AMpoop_4_brains

I am really surprised. I have stop posting on this site for a while now, but I still get comments for this stup!d project. Not my messenger program or my fighting game where stick figures duke it out. No, just this piece of cr@p. I am tempted to delete it.
(If this comment was disrespectful, please report it.)

 
12/7/2005 2:13:34 AMMichael McNeela

Delet it then, but stop getting mad, and give us URLs?
(If this comment was disrespectful, please report it.)

 
5/7/2006 6:42:17 AMWhite_Coon

coooooooooooooooon
(If this comment was disrespectful, please report it.)

 
10/11/2006 8:40:46 AMChad Roe

The screen isn't supposed to freeze. It is a joke, he even tells you it is a joke in the description. Stop busting his balls about it. Even my 4 year old niece knows it simply takes a full-screen screenshot and displays it on the form. Chill kids.
(If this comment was disrespectful, please report it.)

 
8/13/2008 7:48:04 AMvenjoz

have you tried to run your program???
(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.