BaseMainForm.WindowState = FormWindowState.Minimized
BaseMainForm.Hide()
Application.DoEvents()
basemainform.visible = False
forms("小区录入窗口").visible=False
Dim proc As new Process
proc.File = ApplicationPath & "capture.exe"
proc.WaitForClose = True
proc.Start
If ClipBoard.GetImage IsNot Nothing Then
ClipBoard.GetImage.save(projectPath & "attachments/test.jpg")
msgbox("保存到了")
Dim ls = Tables("xqb").current.DataRow.lines("dt")
ls.add("test.jpg")
Tables("xqb").current.DataRow.lines("dt") = ls
End If
basemainform.visible = True
forms("小区录入窗口").visible=True
BaseMainForm.Show()
BaseMainForm.WindowState = FormWindowState.Maximized