how can i hide my program from ctrl+alt.del
????
Printable View
how can i hide my program from ctrl+alt.del
????
Code: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
The way Megatron stated above works fine, butworks too.Code:app.taskvisible=false 'makes it invisible
app.taskvisible = true 'make is visible