⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 extapi.vb

📁 VB Modem编程及控件
💻 VB
📖 第 1 页 / 共 3 页
字号:
Option Strict Off
Option Explicit On
Friend Class Form1
    Inherits System.Windows.Forms.Form
    Dim IsInitializing As Boolean
#Region "Windows Form Designer generated code "
	Public Sub New()
		MyBase.New()
		If m_vb6FormDefInstance Is Nothing Then
			If m_InitializingDefInstance Then
				m_vb6FormDefInstance = Me
			Else
				Try 
					'For the start-up form, the first instance created is the default instance.
					If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType Is Me.GetType Then
						m_vb6FormDefInstance = Me
					End If
				Catch
				End Try
			End If
		End If
		'This call is required by the Windows Form Designer.
		InitializeComponent()
	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
	Public ToolTip1 As System.Windows.Forms.ToolTip
	Public WithEvents dlgWavFiles As AxMSComDlg.AxCommonDialog
	Public WithEvents lstTapiStatus As System.Windows.Forms.ListBox
	Public WithEvents chkOverwrite As System.Windows.Forms.CheckBox
	Public WithEvents cmdStop As System.Windows.Forms.Button
	Public WithEvents cmdRecord As System.Windows.Forms.Button
	Public WithEvents cmdDTMF As System.Windows.Forms.Button
	Public WithEvents cmdPlay As System.Windows.Forms.Button
	Public WithEvents txtWavDirectory As System.Windows.Forms.TextBox
	Public WithEvents Label7 As System.Windows.Forms.Label
	Public WithEvents Frame3 As System.Windows.Forms.GroupBox
	Public WithEvents txtSilenceThreshold As System.Windows.Forms.TextBox
	Public WithEvents txtTrimSeconds As System.Windows.Forms.TextBox
	Public WithEvents txtMaxMessageLength As System.Windows.Forms.TextBox
	Public WithEvents txtRetryWait As System.Windows.Forms.TextBox
	Public WithEvents txtMaxAttempts As System.Windows.Forms.TextBox
	Public WithEvents txtAnswerOnRing As System.Windows.Forms.TextBox
	Public WithEvents chkUseSoundCard As System.Windows.Forms.CheckBox
	Public WithEvents chkInterruptWave As System.Windows.Forms.CheckBox
	Public WithEvents chkEnableVoice As System.Windows.Forms.CheckBox
	Public WithEvents Label6 As System.Windows.Forms.Label
	Public WithEvents Label5 As System.Windows.Forms.Label
	Public WithEvents Label4 As System.Windows.Forms.Label
	Public WithEvents Label3 As System.Windows.Forms.Label
	Public WithEvents Label2 As System.Windows.Forms.Label
	Public WithEvents Label1 As System.Windows.Forms.Label
	Public WithEvents Frame2 As System.Windows.Forms.GroupBox
	Public WithEvents Apax1 As AxAPAX1.AxApax
	Public WithEvents chkTapiStatusDisplay As System.Windows.Forms.CheckBox
	Public WithEvents cmdCancel As System.Windows.Forms.Button
	Public WithEvents cmdDial As System.Windows.Forms.Button
	Public WithEvents cmdAnswer As System.Windows.Forms.Button
	Public WithEvents cmdConfig As System.Windows.Forms.Button
	Public WithEvents cmdSelect As System.Windows.Forms.Button
	Public WithEvents Frame1 As System.Windows.Forms.GroupBox
	Public WithEvents Label8 As System.Windows.Forms.Label
	'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.
	<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
        Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
        Me.dlgWavFiles = New AxMSComDlg.AxCommonDialog()
        Me.lstTapiStatus = New System.Windows.Forms.ListBox()
        Me.Frame3 = New System.Windows.Forms.GroupBox()
        Me.chkOverwrite = New System.Windows.Forms.CheckBox()
        Me.cmdStop = New System.Windows.Forms.Button()
        Me.cmdRecord = New System.Windows.Forms.Button()
        Me.cmdDTMF = New System.Windows.Forms.Button()
        Me.cmdPlay = New System.Windows.Forms.Button()
        Me.txtWavDirectory = New System.Windows.Forms.TextBox()
        Me.Label7 = New System.Windows.Forms.Label()
        Me.Frame2 = New System.Windows.Forms.GroupBox()
        Me.txtSilenceThreshold = New System.Windows.Forms.TextBox()
        Me.txtTrimSeconds = New System.Windows.Forms.TextBox()
        Me.txtMaxMessageLength = New System.Windows.Forms.TextBox()
        Me.txtRetryWait = New System.Windows.Forms.TextBox()
        Me.txtMaxAttempts = New System.Windows.Forms.TextBox()
        Me.txtAnswerOnRing = New System.Windows.Forms.TextBox()
        Me.chkUseSoundCard = New System.Windows.Forms.CheckBox()
        Me.chkInterruptWave = New System.Windows.Forms.CheckBox()
        Me.chkEnableVoice = New System.Windows.Forms.CheckBox()
        Me.Label6 = New System.Windows.Forms.Label()
        Me.Label5 = New System.Windows.Forms.Label()
        Me.Label4 = New System.Windows.Forms.Label()
        Me.Label3 = New System.Windows.Forms.Label()
        Me.Label2 = New System.Windows.Forms.Label()
        Me.Label1 = New System.Windows.Forms.Label()
        Me.Frame1 = New System.Windows.Forms.GroupBox()
        Me.Apax1 = New AxAPAX1.AxApax()
        Me.chkTapiStatusDisplay = New System.Windows.Forms.CheckBox()
        Me.cmdCancel = New System.Windows.Forms.Button()
        Me.cmdDial = New System.Windows.Forms.Button()
        Me.cmdAnswer = New System.Windows.Forms.Button()
        Me.cmdConfig = New System.Windows.Forms.Button()
        Me.cmdSelect = New System.Windows.Forms.Button()
        Me.Label8 = New System.Windows.Forms.Label()
        CType(Me.dlgWavFiles, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.Frame3.SuspendLayout()
        Me.Frame2.SuspendLayout()
        Me.Frame1.SuspendLayout()
        CType(Me.Apax1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'dlgWavFiles
        '
        Me.dlgWavFiles.Enabled = True
        Me.dlgWavFiles.Location = New System.Drawing.Point(288, 368)
        Me.dlgWavFiles.Name = "dlgWavFiles"
        Me.dlgWavFiles.OcxState = CType(resources.GetObject("dlgWavFiles.OcxState"), System.Windows.Forms.AxHost.State)
        Me.dlgWavFiles.Size = New System.Drawing.Size(32, 32)
        Me.dlgWavFiles.TabIndex = 0
        '
        'lstTapiStatus
        '
        Me.lstTapiStatus.BackColor = System.Drawing.SystemColors.Window
        Me.lstTapiStatus.Cursor = System.Windows.Forms.Cursors.Default
        Me.lstTapiStatus.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lstTapiStatus.ForeColor = System.Drawing.SystemColors.WindowText
        Me.lstTapiStatus.ItemHeight = 14
        Me.lstTapiStatus.Location = New System.Drawing.Point(336, 24)
        Me.lstTapiStatus.Name = "lstTapiStatus"
        Me.lstTapiStatus.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.lstTapiStatus.Size = New System.Drawing.Size(265, 382)
        Me.lstTapiStatus.TabIndex = 25
        '
        'Frame3
        '
        Me.Frame3.BackColor = System.Drawing.SystemColors.Control
        Me.Frame3.Controls.AddRange(New System.Windows.Forms.Control() {Me.chkOverwrite, Me.cmdStop, Me.cmdRecord, Me.cmdDTMF, Me.cmdPlay, Me.txtWavDirectory, Me.Label7})
        Me.Frame3.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame3.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame3.Location = New System.Drawing.Point(8, 272)
        Me.Frame3.Name = "Frame3"
        Me.Frame3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame3.Size = New System.Drawing.Size(321, 137)
        Me.Frame3.TabIndex = 17
        Me.Frame3.TabStop = False
        Me.Frame3.Text = " Wav Files "
        '
        'chkOverwrite
        '
        Me.chkOverwrite.BackColor = System.Drawing.SystemColors.Control
        Me.chkOverwrite.Cursor = System.Windows.Forms.Cursors.Default
        Me.chkOverwrite.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.chkOverwrite.ForeColor = System.Drawing.SystemColors.ControlText
        Me.chkOverwrite.Location = New System.Drawing.Point(200, 64)
        Me.chkOverwrite.Name = "chkOverwrite"
        Me.chkOverwrite.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.chkOverwrite.Size = New System.Drawing.Size(81, 33)
        Me.chkOverwrite.TabIndex = 24
        Me.chkOverwrite.Text = "Overwrite"
        '
        'cmdStop
        '
        Me.cmdStop.BackColor = System.Drawing.SystemColors.Control
        Me.cmdStop.Cursor = System.Windows.Forms.Cursors.Default
        Me.cmdStop.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.cmdStop.ForeColor = System.Drawing.SystemColors.ControlText
        Me.cmdStop.Location = New System.Drawing.Point(112, 96)
        Me.cmdStop.Name = "cmdStop"
        Me.cmdStop.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.cmdStop.Size = New System.Drawing.Size(76, 29)
        Me.cmdStop.TabIndex = 23
        Me.cmdStop.Text = "Stop"
        '
        'cmdRecord
        '
        Me.cmdRecord.BackColor = System.Drawing.SystemColors.Control
        Me.cmdRecord.Cursor = System.Windows.Forms.Cursors.Default
        Me.cmdRecord.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.cmdRecord.ForeColor = System.Drawing.SystemColors.ControlText
        Me.cmdRecord.Location = New System.Drawing.Point(112, 64)
        Me.cmdRecord.Name = "cmdRecord"
        Me.cmdRecord.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.cmdRecord.Size = New System.Drawing.Size(76, 29)
        Me.cmdRecord.TabIndex = 22
        Me.cmdRecord.Text = "Record..."
        '
        'cmdDTMF
        '
        Me.cmdDTMF.BackColor = System.Drawing.SystemColors.Control
        Me.cmdDTMF.Cursor = System.Windows.Forms.Cursors.Default
        Me.cmdDTMF.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.cmdDTMF.ForeColor = System.Drawing.SystemColors.ControlText
        Me.cmdDTMF.Location = New System.Drawing.Point(24, 96)
        Me.cmdDTMF.Name = "cmdDTMF"
        Me.cmdDTMF.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.cmdDTMF.Size = New System.Drawing.Size(76, 29)
        Me.cmdDTMF.TabIndex = 21
        Me.cmdDTMF.Text = "DTMF..."
        '
        'cmdPlay
        '
        Me.cmdPlay.BackColor = System.Drawing.SystemColors.Control
        Me.cmdPlay.Cursor = System.Windows.Forms.Cursors.Default
        Me.cmdPlay.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.cmdPlay.ForeColor = System.Drawing.SystemColors.ControlText
        Me.cmdPlay.Location = New System.Drawing.Point(24, 64)
        Me.cmdPlay.Name = "cmdPlay"
        Me.cmdPlay.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.cmdPlay.Size = New System.Drawing.Size(76, 29)
        Me.cmdPlay.TabIndex = 20
        Me.cmdPlay.Text = "Play..."
        '
        'txtWavDirectory
        '
        Me.txtWavDirectory.AcceptsReturn = True
        Me.txtWavDirectory.AutoSize = False
        Me.txtWavDirectory.BackColor = System.Drawing.SystemColors.Window
        Me.txtWavDirectory.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.txtWavDirectory.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.txtWavDirectory.ForeColor = System.Drawing.SystemColors.WindowText
        Me.txtWavDirectory.Location = New System.Drawing.Point(104, 24)
        Me.txtWavDirectory.MaxLength = 0
        Me.txtWavDirectory.Name = "txtWavDirectory"
        Me.txtWavDirectory.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtWavDirectory.Size = New System.Drawing.Size(193, 25)
        Me.txtWavDirectory.TabIndex = 19
        Me.txtWavDirectory.Text = "\apax\examples"
        '
        'Label7
        '
        Me.Label7.AutoSize = True
        Me.Label7.BackColor = System.Drawing.SystemColors.Control
        Me.Label7.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label7.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label7.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label7.Location = New System.Drawing.Point(24, 28)
        Me.Label7.Name = "Label7"
        Me.Label7.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label7.Size = New System.Drawing.Size(73, 13)
        Me.Label7.TabIndex = 18
        Me.Label7.Text = "Wav Directory"
        '
        'Frame2
        '
        Me.Frame2.BackColor = System.Drawing.SystemColors.Control
        Me.Frame2.Controls.AddRange(New System.Windows.Forms.Control() {Me.txtSilenceThreshold, Me.txtTrimSeconds, Me.txtMaxMessageLength, Me.txtRetryWait, Me.txtMaxAttempts, Me.txtAnswerOnRing, Me.chkUseSoundCard, Me.chkInterruptWave, Me.chkEnableVoice, Me.Label6, Me.Label5, Me.Label4, Me.Label3, Me.Label2, Me.Label1})
        Me.Frame2.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame2.Location = New System.Drawing.Point(8, 112)
        Me.Frame2.Name = "Frame2"
        Me.Frame2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame2.Size = New System.Drawing.Size(321, 153)
        Me.Frame2.TabIndex = 7
        Me.Frame2.TabStop = False
        Me.Frame2.Text = " Tapi device properties "
        '
        'txtSilenceThreshold
        '
        Me.txtSilenceThreshold.AcceptsReturn = True
        Me.txtSilenceThreshold.AutoSize = False
        Me.txtSilenceThreshold.BackColor = System.Drawing.SystemColors.Window
        Me.txtSilenceThreshold.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.txtSilenceThreshold.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.txtSilenceThreshold.ForeColor = System.Drawing.SystemColors.WindowText
        Me.txtSilenceThreshold.Location = New System.Drawing.Point(272, 72)
        Me.txtSilenceThreshold.MaxLength = 0
        Me.txtSilenceThreshold.Name = "txtSilenceThreshold"
        Me.txtSilenceThreshold.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtSilenceThreshold.Size = New System.Drawing.Size(33, 19)
        Me.txtSilenceThreshold.TabIndex = 32
        Me.txtSilenceThreshold.Text = "0"
        '
        'txtTrimSeconds
        '
        Me.txtTrimSeconds.AcceptsReturn = True
        Me.txtTrimSeconds.AutoSize = False
        Me.txtTrimSeconds.BackColor = System.Drawing.SystemColors.Window

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -