How to make a pop-up prank menu

Shout-Out

User Tag List

Results 1 to 8 of 8
  1. #1
    Neth'zul's Avatar Banned
    Reputation
    204
    Join Date
    Nov 2007
    Posts
    887
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to make a pop-up prank

    So here I will give you the code to make a program that dose not let you close it, you press a button another thing comes up. YOU JUST CAN'T CLOSE IT

    First make 2 buttons and 1 label.

    1. Name the label : Just try to close me!
    2. Name button 1 "Close me"
    3. Name button 2 "CLOSE!!!"
    4. here is the code for button 1:

    Code:
     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim newform1 As New Form1
            times = times + 1
            newform1.Text = "Try to Close This!" & times.ToString
            newform1.Show()
    
        End Sub
    5. Double click form 1 so you get your code.
    Right beside From1 events there's a drop down menu, there make the from1 Click
    and type this in:

    Private Sub Form1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Click
    MsgBox(" Windows errors, you are tying to click here. YOU CAN'T CLICK HERE!", MsgBoxStyle.Critical, "ERROR")
    MsgBox("Windows is trying to finalize.", MsgBoxStyle.Critical, "Windows Information")
    Application.Exit()
    End Sub

    then double click form1 again and youll get a blank code spot again make that spot FormClosing

    The code for that is:
    Code:
     Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
            If e.CloseReason = CloseReason.UserClosing Then
                e.Cancel = True
                MsgBox("Try Another way bud...", MsgBoxStyle.Critical, "ERROR")
            ElseIf e.CloseReason = CloseReason.ApplicationExitCall Then
                e.Cancel = True
                MsgBox("Application is trying to finalize itself but it is impossible", MsgBoxStyle.Critical, "ERROR")
            ElseIf CloseReason.TaskManagerClosing Then
                e.Cancel = True
                MsgBox(" Task manager? ITS NOT FAIR!", MsgBoxStyle.Critical, "ERROR")
                Application.DoEvents()
            End If
        End Sub
    And for button 2 its
    Code:
        Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            Application.Exit()
        End Sub
    Over all it should look like this:

    Code:
    Public Class Form1
        Dim times As Long = 0
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim newform1 As New Form1
            times = times + 1
            newform1.Text = "Try to Close This!" & times.ToString
            newform1.Show()
    
        End Sub
    
        Private Sub Form1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Click
            MsgBox(" Windows errors, you are tying to click here. YOU CAN'T CLICK HERE!", MsgBoxStyle.Critical, "ERROR")
            MsgBox("Windows is trying to finalize.", MsgBoxStyle.Critical, "Windows Information")
            Application.Exit()
        End Sub
    
        Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
            If e.CloseReason = CloseReason.UserClosing Then
                e.Cancel = True
                MsgBox("Try Another way bud...", MsgBoxStyle.Critical, "ERROR")
            ElseIf e.CloseReason = CloseReason.ApplicationExitCall Then
                e.Cancel = True
                MsgBox("Application is trying to finalize itself but it is impossible", MsgBoxStyle.Critical, "ERROR")
            ElseIf CloseReason.TaskManagerClosing Then
                e.Cancel = True
                MsgBox(" Task manager? ITS NOT FAIR!", MsgBoxStyle.Critical, "ERROR")
                Application.DoEvents()
            End If
        End Sub
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
        End Sub
    
        Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            Application.Exit()
        End Sub
    End Class

    How to make a pop-up prank
  2. #2
    Fireking300's Avatar Active Member
    Reputation
    27
    Join Date
    Jun 2007
    Posts
    92
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lol Nice prank I'll try to top it!

  3. #3
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    task manager -> right click the program -> go to process -> delete key (or end process) -> yes

    NOTHING can stop that. At all.

  4. #4
    Jens's Avatar Contributor
    Reputation
    179
    Join Date
    Sep 2006
    Posts
    251
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wrote this in C# so not completely sure it works in VB, but this should disable the taskmanager( app needs to be able to write to registry ofcource):

    Code:
        
    Dim keyValueInt As String = "1"
    Dim subKey As String = "SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem"     
    Try          
    Dim regkey As RegistryKey = Registry.CurrentUser.CreateSubKey(subKey)         
    regkey.SetValue("DisableTaskMgr", keyValueInt) 
    regkey.Close 
        Catch ex As Exception         
    MessageBox.Show(ex.ToString)     
    End Try

  5. #5
    Neth'zul's Avatar Banned
    Reputation
    204
    Join Date
    Nov 2007
    Posts
    887
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah you can do that, but I don't want to be stuck with one of those

  6. #6
    GunMan's Avatar Knight-Lieutenant
    Reputation
    34
    Join Date
    Apr 2007
    Posts
    326
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ... How do we close this after we try it out...

    I kinda.. well...
    XD

    Success, it stopped working. :P

  7. #7
    Gothian's Avatar Member
    Reputation
    249
    Join Date
    Jul 2006
    Posts
    496
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by avec View Post
    wrote this in C# so not completely sure it works in VB, but this should disable the taskmanager( app needs to be able to write to registry ofcource):

    Code:
        
    Dim keyValueInt As String = "1"
    Dim subKey As String = "SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem"     
    Try          
    Dim regkey As RegistryKey = Registry.CurrentUser.CreateSubKey(subKey)         
    regkey.SetValue("DisableTaskMgr", keyValueInt) 
    regkey.Close 
        Catch ex As Exception         
    MessageBox.Show(ex.ToString)     
    End Try
    The two languages are interchangeable. I don't see anything wrong with this code up front without testing it, other than... why declare a variable which contains an integer, as a string O.o?
    Last edited by Gothian; 08-13-2008 at 04:51 AM.

    Soon you can find my projects at: www.termight.info

  8. #8
    Jens's Avatar Contributor
    Reputation
    179
    Join Date
    Sep 2006
    Posts
    251
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Gothian View Post
    The two languages are interchangeable. I don't see anything wrong with this code up front without testing it, other than... why declare a variable which contains an integer, as a string O.o?
    dident write it in vb, just wrote in C# and converted :P but now when you say it, i can actually see what you meant, just never really bothered to look into the VB code :>

Similar Threads

  1. Any ideas how to make big amounts of gold in high pop servers?
    By jivk03 in forum World of Warcraft General
    Replies: 13
    Last Post: 03-28-2015, 04:47 PM
  2. Replies: 14
    Last Post: 12-06-2012, 05:46 PM
  3. How to make a pop up vote box disapear after 12 hours
    By mastermania in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 06-27-2008, 12:21 AM
  4. How to Make a Character with Cool Letters
    By Cyboi in forum World of Warcraft Guides
    Replies: 62
    Last Post: 08-21-2007, 01:52 PM
  5. How to make the darkmoon card: blue dragon proc without casting
    By Matt in forum World of Warcraft Guides
    Replies: 1
    Last Post: 04-17-2006, 05:17 AM
All times are GMT -5. The time now is 08:45 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search