i have a simple GUI form to hide / show / minimize / terminate / force terminate Processes
i can do all well but for show and hide i need the MainWindowHandle to show or hide it
so here is hide process code
if i try the same with show code
the MainWindowHandle become 0 cuz its hidden is there is any other way to get the MainWindowHandle of Process ?
i can do all well but for show and hide i need the MainWindowHandle to show or hide it
so here is hide process code
VB.NET:
Dim Proc As New Process = Process.GetProcessesById(List.SelectedRows(0).Cells(1))
Dim hwnd = Proc.MainWindowHandle
ShowWindow(hwnd,0)
if i try the same with show code
VB.NET:
Dim Proc As New Process = Process.GetProcessesById(List.SelectedRows(0).Cells(1))
Dim hwnd = Proc.MainWindowHandle
ShowWindow(hwnd,9)
the MainWindowHandle become 0 cuz its hidden is there is any other way to get the MainWindowHandle of Process ?