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

📄 mainform.vb

📁 短信猫C#例子,很不错的例子,不妨下载测试
💻 VB
📖 第 1 页 / 共 2 页
字号:

Public Class mainform
    Inherits System.Windows.Forms.Form

#Region " Windows 窗体设计器生成的代码 "

    Public Sub New()
        MyBase.New()

        '该调用是 Windows 窗体设计器所必需的。
        InitializeComponent()

        '在 InitializeComponent() 调用之后添加任何初始化

    End Sub

    '窗体重写 dispose 以清理组件列表。
    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

    'Windows 窗体设计器所必需的
    Private components As System.ComponentModel.IContainer

    '注意: 以下过程是 Windows 窗体设计器所必需的
    '可以使用 Windows 窗体设计器修改此过程。
    '不要使用代码编辑器修改它。
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents cmbBaud As System.Windows.Forms.TextBox
    Friend WithEvents cmdConnect As System.Windows.Forms.Button
    Friend WithEvents cmdDisConnect As System.Windows.Forms.Button
    Friend WithEvents conngsmstate As System.Windows.Forms.Label
    Friend WithEvents EdisonSmsGw1 As AxEDISONSMSGWLib.AxEdisonSmsGw
    Friend WithEvents connocxTimer As System.Windows.Forms.Timer
    Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
    Friend WithEvents smshistory As System.Windows.Forms.TextBox
    Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents mobile As System.Windows.Forms.TextBox
    Friend WithEvents smsText As System.Windows.Forms.TextBox
    Friend WithEvents sendCommand As System.Windows.Forms.Button
    Friend WithEvents Combo1 As System.Windows.Forms.TextBox
    Friend WithEvents Combo As System.Windows.Forms.ComboBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(mainform))
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.Combo = New System.Windows.Forms.ComboBox
        Me.EdisonSmsGw1 = New AxEDISONSMSGWLib.AxEdisonSmsGw
        Me.conngsmstate = New System.Windows.Forms.Label
        Me.cmdDisConnect = New System.Windows.Forms.Button
        Me.cmdConnect = New System.Windows.Forms.Button
        Me.cmbBaud = New System.Windows.Forms.TextBox
        Me.Combo1 = New System.Windows.Forms.TextBox
        Me.Label2 = New System.Windows.Forms.Label
        Me.Label1 = New System.Windows.Forms.Label
        Me.connocxTimer = New System.Windows.Forms.Timer(Me.components)
        Me.GroupBox2 = New System.Windows.Forms.GroupBox
        Me.smshistory = New System.Windows.Forms.TextBox
        Me.GroupBox3 = New System.Windows.Forms.GroupBox
        Me.sendCommand = New System.Windows.Forms.Button
        Me.smsText = New System.Windows.Forms.TextBox
        Me.mobile = New System.Windows.Forms.TextBox
        Me.Label4 = New System.Windows.Forms.Label
        Me.Label3 = New System.Windows.Forms.Label
        Me.GroupBox1.SuspendLayout()
        CType(Me.EdisonSmsGw1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.GroupBox2.SuspendLayout()
        Me.GroupBox3.SuspendLayout()
        Me.SuspendLayout()
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.Add(Me.Combo)
        Me.GroupBox1.Controls.Add(Me.EdisonSmsGw1)
        Me.GroupBox1.Controls.Add(Me.conngsmstate)
        Me.GroupBox1.Controls.Add(Me.cmdDisConnect)
        Me.GroupBox1.Controls.Add(Me.cmdConnect)
        Me.GroupBox1.Controls.Add(Me.cmbBaud)
        Me.GroupBox1.Controls.Add(Me.Combo1)
        Me.GroupBox1.Controls.Add(Me.Label2)
        Me.GroupBox1.Controls.Add(Me.Label1)
        Me.GroupBox1.Location = New System.Drawing.Point(8, 16)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(488, 120)
        Me.GroupBox1.TabIndex = 0
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "设备连接"
        '
        'Combo
        '
        Me.Combo.Location = New System.Drawing.Point(80, 24)
        Me.Combo.Name = "Combo"
        Me.Combo.Size = New System.Drawing.Size(112, 20)
        Me.Combo.TabIndex = 8
        Me.Combo.Text = "com1"
        '
        'EdisonSmsGw1
        '
        Me.EdisonSmsGw1.ContainingControl = Me
        Me.EdisonSmsGw1.Enabled = True
        Me.EdisonSmsGw1.Location = New System.Drawing.Point(472, 64)
        Me.EdisonSmsGw1.Name = "EdisonSmsGw1"
        Me.EdisonSmsGw1.OcxState = CType(resources.GetObject("EdisonSmsGw1.OcxState"), System.Windows.Forms.AxHost.State)
        Me.EdisonSmsGw1.Size = New System.Drawing.Size(8, 8)
        Me.EdisonSmsGw1.TabIndex = 7
        Me.EdisonSmsGw1.Visible = False
        '
        'conngsmstate
        '
        Me.conngsmstate.Location = New System.Drawing.Point(216, 88)
        Me.conngsmstate.Name = "conngsmstate"
        Me.conngsmstate.Size = New System.Drawing.Size(256, 24)
        Me.conngsmstate.TabIndex = 6
        '
        'cmdDisConnect
        '
        Me.cmdDisConnect.Location = New System.Drawing.Point(136, 88)
        Me.cmdDisConnect.Name = "cmdDisConnect"
        Me.cmdDisConnect.Size = New System.Drawing.Size(48, 24)
        Me.cmdDisConnect.TabIndex = 5
        Me.cmdDisConnect.Text = "断开"
        '
        'cmdConnect
        '
        Me.cmdConnect.Location = New System.Drawing.Point(80, 88)
        Me.cmdConnect.Name = "cmdConnect"
        Me.cmdConnect.Size = New System.Drawing.Size(48, 24)
        Me.cmdConnect.TabIndex = 4
        Me.cmdConnect.Text = "连接"
        '
        'cmbBaud
        '
        Me.cmbBaud.Location = New System.Drawing.Point(80, 56)
        Me.cmbBaud.Name = "cmbBaud"
        Me.cmbBaud.Size = New System.Drawing.Size(272, 21)
        Me.cmbBaud.TabIndex = 3
        Me.cmbBaud.Text = "9600"
        '
        'Combo1
        '
        Me.Combo1.Location = New System.Drawing.Point(8, 88)
        Me.Combo1.Name = "Combo1"
        Me.Combo1.Size = New System.Drawing.Size(16, 21)
        Me.Combo1.TabIndex = 2
        Me.Combo1.Text = ""
        Me.Combo1.Visible = False
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(8, 56)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(72, 16)
        Me.Label2.TabIndex = 1
        Me.Label2.Text = "设备波特率"
        '
        'Label1
        '
        Me.Label1.Location = New System.Drawing.Point(8, 24)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(56, 16)
        Me.Label1.TabIndex = 0
        Me.Label1.Text = "设备端口"
        '
        'connocxTimer
        '
        Me.connocxTimer.Enabled = True
        Me.connocxTimer.Interval = 3000
        '
        'GroupBox2
        '
        Me.GroupBox2.Controls.Add(Me.smshistory)
        Me.GroupBox2.Location = New System.Drawing.Point(8, 144)
        Me.GroupBox2.Name = "GroupBox2"
        Me.GroupBox2.Size = New System.Drawing.Size(488, 160)
        Me.GroupBox2.TabIndex = 1
        Me.GroupBox2.TabStop = False
        Me.GroupBox2.Text = "短信记录"
        '
        'smshistory
        '
        Me.smshistory.Location = New System.Drawing.Point(8, 16)

⌨️ 快捷键说明

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