用vb.net怎么样能得到一个应用程序窗口的句柄,并将窗口最大化
发布时间:2020-12-16 22:59:38 所属栏目:大数据 来源:网络整理
导读:用API+Process: Declare Function ShowWindow Lib "user32 " Alias "ShowWindow " (ByVal hwnd As Integer,ByVal nCmdShow As Integer) As Integer 运行时用Process.getProcessById或Process.GetProcessByName来取得一个进程,用Process的GetMainWindowHandl
用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坏了) (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |