Results 1 to 5 of 5
  1. #1
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    https://mpgh.net MPGHCash: $442,596,199
    Posts
    5,645
    Reputation
    26
    Thanks
    896
    My Mood
    Happy

    [Tutorial] Disable Close Button

    Disable Close Button in Forms

    Again, credits go to me!


    What you need:
    1. Windows Forms Application
    2. Basic understanding of Forms

    First off, you need to enter the "Events" category of Form1. Then from there, continue on to find "FormClosing"

    Next, double-click it to enter this code-
    Code:
        Private Sub Form1_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing
            e.Cancel = True
        End Sub
    One line of code, sweet and simple for you sadists that want to torture fools out there in running your program. Enjoy!

  2. #2
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed


     


     


     



    The Most complete application MPGH will ever offer - 68%




  3. The Following User Says Thank You to NextGen1 For This Useful Post:

    XGelite (02-19-2010)

  4. #3
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    already been posted. Search button first!

  5. #4
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by Justin View Post
    Disable Close Button in Forms

    Again, credits go to me!


    What you need:
    1. Windows Forms Application
    2. Basic understanding of Forms

    First off, you need to enter the "Events" category of Form1. Then from there, continue on to find "FormClosing"

    Next, double-click it to enter this code-
    Code:
        Private Sub Form1_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing
            e.Cancel = True
        End Sub
    One line of code, sweet and simple for you sadists that want to torture fools out there in running your program. Enjoy!
    Actually this is posted some times before and I agree with next, make one tread with all these "small" tutorials!
    -Rest in peace leechers-

    Your PM box is 100% full.

  6. #5
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    https://mpgh.net MPGHCash: $442,596,199
    Posts
    5,645
    Reputation
    26
    Thanks
    896
    My Mood
    Happy
    i searched around, and i found that nextgen's tutorial is a different method. just bringing this out. if why06 wants to merge them all, then that would be good.

Similar Threads

  1. [Tutorial]Disables all of your victims AV
    By House in forum Exploits
    Replies: 3
    Last Post: 02-18-2014, 06:49 PM
  2. [Tutorial]Making a Trainer[Closed]
    By CoderNever in forum Visual Basic Programming
    Replies: 6
    Last Post: 04-14-2010, 09:56 AM
  3. Disabling The Alt + f4 Hotkey [Close Button]
    By nathanael890 in forum Visual Basic Programming
    Replies: 10
    Last Post: 02-14-2010, 02:59 PM
  4. [Tutorial] Disable X Button
    By NextGen1 in forum Visual Basic Programming
    Replies: 13
    Last Post: 02-09-2010, 09:07 AM
  5. Disable Exit Button?
    By Zoom in forum Visual Basic Programming
    Replies: 7
    Last Post: 01-13-2010, 03:07 PM