日期:2011-04-03 浏览次数:20452 次
'-------------------------------------------------
'--------Code By Ken Tucker-------------
'-------------------------------------------------
Imports System.Runtime.InteropServices
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents picCapture As System.Windows.Forms.PictureBox
Friend WithEvents lstDevices As System.Windows.Forms.ListBox
Friend WithEvents lblDevice As System.Windows.Forms.Label
Friend WithEvents btnStart As System.Windows.Forms.Button
Friend WithEvents btnSave As System.Windows.Forms.Button
Friend WithEvents btnStop As System.Windows.Forms.Button
Friend WithEvents sfdImage As System.Windows.Forms.SaveFileDialog
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.picCapture = New System.Windows.Forms.PictureBox()
Me.lstDevices = New System.Windows.Forms.ListBox()
Me.lblDevice = New System.Windows.Forms.Label()
Me.btnStart = New System.Windows.Forms.Button()
Me.btnSave = New System.Windows.Forms.Button()
Me.btnStop = New System.Windows.Forms.Button()
Me.sfdImage = New System.Windows.Forms.SaveFileDialog()
Me.SuspendLayout()
'
'picCapture
'
Me.picCapture.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
Me.picCapture.Location = New System.Drawing.Point(208, 24)
Me.picCapture.Name = "picCapture"
Me.picCapture.Size = New System.Drawing.Size(256, 272)
Me.picCapture.TabIndex = 0
Me.picCapture.TabSt