发布网友 发布时间:2023-07-09 17:16
共2个回答
热心网友 时间:2024-12-01 20:03
App.TaskVisible = False能在管理器的应用程序中能隐藏,但在进程中无法隐藏。追答这没试过,这是一个很老的了,那时好象还没有360,如果可以的话,我建议直接隐藏桌面。
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Const SW_HIDE = 0
Private Const SW_RESTORE = 9
'隐藏桌面图标
Private Sub Command1_Click()
Dim Hwd As Long
Dim rtn As Long
Hwd = FindWindow("Progman", vbNullString)
rtn = ShowWindow(Hwd, SW_HIDE)
End Sub
'显示桌面图标
Private Sub Command2_Click()
Dim Hwd As Long
Dim rtn As Long
Hwd = FindWindow("Progman", vbNullString)
rtn = ShowWindow(Hwd, SW_RESTORE)
End Sub
热心网友 时间:2024-12-01 20:04
到这里看看,里面有