Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    expl0!t's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    130
    Reputation
    38
    Thanks
    31
    My Mood
    Inspired
    You want to make it where a user can't close the form?

    Code:
          If CheckBox1.Checked = True Then
                Me.ControlBox = False
            Else
                Me.ControlBox = True
            End If
    Would show/hide the control buttons (minimize, maximize, close).
    Then just hide the program from taskmanager and use a work around to disable the alt+F4 key.

    To block the alt+F4 from closing your program, import this code:
    Code:
        Private frmval As Boolean = True
    
        Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
    
            If (e.Alt) And (e.KeyValue = Keys.F4) Then
                e.Handled = frmval
            End If
    
        End Sub
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
            AddHandler Me.KeyDown, AddressOf Me.Form1_KeyDown
    
        End Sub
    Then when you'd like to block the alt+f4 input, call this:
    Code:
            frmval = True 'disables alt+f4
            AddHandler Me.KeyDown, AddressOf Me.Form1_KeyDown
    Last edited by expl0!t; 07-02-2010 at 12:15 PM.
    [img]https://i295.photobucke*****m/albums/mm150/gfx_forums/CFT_4.png[/img]

    [IMG]https://i295.photobucke*****m/albums/mm150/gfx_forums/hazard3_redone.png[/IMG]

  2. #17
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead


    Use Form_Closing event to do this.

    This should be the code for your Form_Closing event:


    Code:
    Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
            e.Cancel = True
    End Sub
    To enable closing just set it to False:

    Code:
    e.Cancel = false
    Hope this helps !!

  3. #18
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    taskmanager?



  4. #19
    XxDragonSharKxX's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Germany
    Posts
    290
    Reputation
    10
    Thanks
    44
    My Mood
    Aggressive
    how I can hide it from task manager ?
    sorry for the copy & past questions

    taskmanager must be still openable but the process must be hidden

  5. #20
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by XxDragonSharKxX View Post
    how I can hide it from task manager ?
    sorry for the copy & past questions

    taskmanager must be still openable but the process must be hidden
    I don't think anyone is going to help you do this. It sounds too much like malware/viruses/keyloggers where you need it to run undetected by anything in order to rape the shit out of a person's keyboard. There is no "legit" reason why you would need to make your program concealed at runtime.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  6. The Following User Says Thank You to Jason For This Useful Post:

    expl0!t (07-02-2010)

  7. #21
    expl0!t's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    130
    Reputation
    38
    Thanks
    31
    My Mood
    Inspired
    Quote Originally Posted by XxDragonSharKxX View Post
    how I can hide it from task manager ?
    sorry for the copy & past questions

    taskmanager must be still openable but the process must be hidden
    Harder than it sounds.
    [img]https://i295.photobucke*****m/albums/mm150/gfx_forums/CFT_4.png[/img]

    [IMG]https://i295.photobucke*****m/albums/mm150/gfx_forums/hazard3_redone.png[/IMG]

  8. #22
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    It has to be a service, instead of a process.

    (no code for you)



  9. #23
    XxDragonSharKxX's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Germany
    Posts
    290
    Reputation
    10
    Thanks
    44
    My Mood
    Aggressive
    ok ^^ no problem I think people wont need it in a injector ^^

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Help] My.Settings to save checkboxes [solved]
    By Cryptonic in forum Visual Basic Programming
    Replies: 7
    Last Post: 03-27-2011, 06:50 PM
  2. Alessandro D3D Base - CheckBoxes help plz
    By yoyoman4567 in forum Combat Arms Coding Help & Discussion
    Replies: 5
    Last Post: 02-18-2011, 09:00 PM
  3. [Help]CheckBox[Solved]
    By ppl2pass in forum Visual Basic Programming
    Replies: 1
    Last Post: 03-07-2010, 10:54 PM
  4. [Help] MAKING A CHECKBOX TO SAVE LOGIN
    By Dreamer in forum Visual Basic Programming
    Replies: 16
    Last Post: 01-18-2010, 07:55 AM
  5. [HELP] How do u save settings and check all checkboxes at once?
    By deathninjak0 in forum Visual Basic Programming
    Replies: 15
    Last Post: 11-18-2009, 03:02 PM