用API+Process: Declare Function ShowWindow Lib "user32 " Alias "ShowWindow " (ByVal hwnd As Integer,ByVal nCmdShow As Integer) As Integer 运行时用Process.getProcessById或Process.GetProcessByName来取得一个进程,用Process的GetMainWindowHandle取得句柄,然后ShowWindow(Process.GetProcessByName( "... ").GetMainWindowHandle.toint32,1)可以还原后显示窗口,要最大化,用VB6查SW_SHOWMAXIMIZED(我的VB6坏了)
原文链接:https://www.f2er.com/vb/261464.html