PDA

Click to See Complete Forum and Search --> : how can i hide


Bjorn
Feb 14th, 2001, 02:08 PM
how can i hide my program from ctrl+alt.del
????

Feb 14th, 2001, 02:24 PM
Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long
Private Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long

Private Sub Form_Load()
'Hide from Task List
RegisterServiceProcess GetCurrentProcessId, 1
End Sub

Private Sub Form_Unload(Cancel As Integer)
'Show in Task list
RegisterServiceProcess GetCurrentProcessId, 0
End Sub

Rh0ads
Feb 16th, 2001, 04:10 PM
The way Megatron stated above works fine, but
app.taskvisible=false 'makes it invisible
app.taskvisible = true 'make is visible


works too.