相关疑难解决方法(0)

提取窗口的所有子窗口

如何提取窗口的所有子窗口?

示例代码:

Dim hWnd As IntPtr = ProcessName.MainWindowHandle
For Each hWndChild As IntPtr In hWnd
  MsgBox(hWndChild.classname.tostring & ", Caption: " & hWndChild.caption.tostring())
Next
Run Code Online (Sandbox Code Playgroud)

(像间谍++)

.net vb.net pinvoke winforms

5
推荐指数
1
解决办法
3765
查看次数

标签 统计

.net ×1

pinvoke ×1

vb.net ×1

winforms ×1