我可以在VB中打开Snipping Tool,如何获取我打开的表单截图?

时间:2018-06-12 15:05:24

标签: .net code-snippets

在我正在尝试自动化报告的项目中工作,该报告涉及打开多个网页并在每个页面上拍摄特定信息的快照。到目前为止,我已经能够获得第一页并打开剪切工具,只需要一些关于如何编码的建议,以便开始拍摄屏幕截图。

Public Class Form2

Private Sub Form2_Load(sender As Object, e As EventArgs) Handles MyBase.Activated
    Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
    If Not Environment.Is64BitProcess Then
        Process.Start("C:\Windows\sysnative\SnippingTool.exe")
    Else
        Process.Start("C:\Windows\system32\SnippingTool.exe")
    End If
End Sub

结束班

0 个答案:

没有答案
相关问题