Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[Snippet] Disable Close [X] Button

Can't they go to task manager and end it from there? Or will it reopen again?
Pretty nice but I'd rather just

PHP Code

<?php 
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
    e
.Cancel = True
    End Sub 
(Mar 3, 2012 09:55 AM)SomeWhiteGuy Wrote:  This doesn't stop your application from closing, it's disables the close button. Yes, they can open up task manager and it will close it if they click end.

Either way, pretty good stuff here, good job.
Thanks for this man, I was always wondering how to do that 🙂
It's more sleek-looking than some other solutions :p Nice find.
Thanks very much for this snippet, OP. I've implemented it in my program, expect to see your name in there.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by еlixirSep 9, 2022 06:31 AM 0 132 Sep 9, 2022 06:31 AM
Last Post: еlixir
[Python] by datguy.devNov 28, 2019 10:37 PM 4 296 Nov 28, 2019 10:37 PM
Last Post: Eternal Darkness
[.NET] by LeonieHackPetaBytes2Jan 23, 2019 05:10 PM 1 227 Jan 23, 2019 05:10 PM
Last Post: 0xDEAD10CC