屏幕捕获控制信息,并保存到文件中以备后用 [英] Screen Capture control information and save to a file for later
本文介绍了屏幕捕获控制信息,并保存到文件中以备后用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是VB.Net的新手,并且正在开发一个程序,该程序将使您可以在文本框中输入信息.必须在几秒钟内输入信息,然后程序结束.我想在程序结束之前捕获控制信息,以便以后打印结果.下面是我的代码...如何在34秒结束之前捕获信息?
Hi,
I am new to VB.Net and I am working on a program that will allow you to enter information into text boxes. The information must be entered within so many seconds and then the program ends. I would like to capture the control information before the program ends so I can print the results later. Below is my code...how can I capture the information before the 34 seconds is up?
Imports System.ComponentModel
Public Class escalationForm
Private Sub escalationForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
My.Computer.Audio.Play(My.Resources.Adan, AudioPlayMode.Background)
'Automatically plays audio file
End Sub
Private timer1 As New Timer
Public Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
timer1.Interval = 34000
timer1.Enabled = True
AddHandler timer1.Tick, AddressOf Timer1_Tick
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim f2 As New introTask2
f2.Show()
timer1.Enabled = False
Close()
End Sub
End Class
推荐答案
您需要使用TimerCallBack
代理 [ ^ ]在时间过去后执行.
要捕获屏幕,可以查看以下链接 [ ^ ].
You need to use aTimerCallBack
delegate [^] that executes once the time elapses.
To capture the screen, you can look at the following link[^].
这篇关于屏幕捕获控制信息,并保存到文件中以备后用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文