📄 form1.vb
字号:
'以下代码仅供示例使用
Public Class Form1
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 GroupBox2 As System.Windows.Forms.GroupBox
Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
Friend WithEvents GroupBox4 As System.Windows.Forms.GroupBox
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents Label7 As System.Windows.Forms.Label
Friend WithEvents txtMsgCenter As System.Windows.Forms.TextBox
Friend WithEvents txtCommPort As System.Windows.Forms.TextBox
Friend WithEvents cmdConnect As System.Windows.Forms.Button
Friend WithEvents cmdDisConnect As System.Windows.Forms.Button
Friend WithEvents txtNo As System.Windows.Forms.TextBox
Friend WithEvents txtCon As System.Windows.Forms.TextBox
Friend WithEvents chkBlink As System.Windows.Forms.CheckBox
Friend WithEvents chkFlash As System.Windows.Forms.CheckBox
Friend WithEvents cmdSend As System.Windows.Forms.Button
Friend WithEvents txtReceive As System.Windows.Forms.TextBox
Friend WithEvents txtIndex As System.Windows.Forms.TextBox
Friend WithEvents cmdRead As System.Windows.Forms.Button
Friend WithEvents txtFromNo As System.Windows.Forms.TextBox
Friend WithEvents txtSendTime As System.Windows.Forms.TextBox
Friend WithEvents txtReadCon As System.Windows.Forms.TextBox
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents Axalasunsms1 As Axalasun.Axalasunsms
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.GroupBox2 = New System.Windows.Forms.GroupBox
Me.GroupBox3 = New System.Windows.Forms.GroupBox
Me.GroupBox4 = New System.Windows.Forms.GroupBox
Me.Label1 = New System.Windows.Forms.Label
Me.txtMsgCenter = New System.Windows.Forms.TextBox
Me.txtCommPort = New System.Windows.Forms.TextBox
Me.cmdConnect = New System.Windows.Forms.Button
Me.cmdDisConnect = New System.Windows.Forms.Button
Me.Label2 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.txtNo = New System.Windows.Forms.TextBox
Me.txtCon = New System.Windows.Forms.TextBox
Me.chkBlink = New System.Windows.Forms.CheckBox
Me.chkFlash = New System.Windows.Forms.CheckBox
Me.cmdSend = New System.Windows.Forms.Button
Me.txtReceive = New System.Windows.Forms.TextBox
Me.Label4 = New System.Windows.Forms.Label
Me.txtIndex = New System.Windows.Forms.TextBox
Me.cmdRead = New System.Windows.Forms.Button
Me.Label5 = New System.Windows.Forms.Label
Me.txtFromNo = New System.Windows.Forms.TextBox
Me.Label6 = New System.Windows.Forms.Label
Me.txtSendTime = New System.Windows.Forms.TextBox
Me.txtReadCon = New System.Windows.Forms.TextBox
Me.Label7 = New System.Windows.Forms.Label
Me.Label8 = New System.Windows.Forms.Label
Me.Axalasunsms1 = New Axalasun.Axalasunsms
Me.GroupBox1.SuspendLayout()
Me.GroupBox2.SuspendLayout()
Me.GroupBox3.SuspendLayout()
Me.GroupBox4.SuspendLayout()
CType(Me.Axalasunsms1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'GroupBox1
'
Me.GroupBox1.Controls.Add(Me.cmdDisConnect)
Me.GroupBox1.Controls.Add(Me.cmdConnect)
Me.GroupBox1.Controls.Add(Me.txtCommPort)
Me.GroupBox1.Controls.Add(Me.txtMsgCenter)
Me.GroupBox1.Controls.Add(Me.Label1)
Me.GroupBox1.Location = New System.Drawing.Point(16, 8)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(488, 72)
Me.GroupBox1.TabIndex = 0
Me.GroupBox1.TabStop = False
Me.GroupBox1.Text = "短信设备连接"
'
'GroupBox2
'
Me.GroupBox2.Controls.Add(Me.cmdSend)
Me.GroupBox2.Controls.Add(Me.chkFlash)
Me.GroupBox2.Controls.Add(Me.chkBlink)
Me.GroupBox2.Controls.Add(Me.txtCon)
Me.GroupBox2.Controls.Add(Me.txtNo)
Me.GroupBox2.Controls.Add(Me.Label3)
Me.GroupBox2.Controls.Add(Me.Label2)
Me.GroupBox2.Location = New System.Drawing.Point(16, 88)
Me.GroupBox2.Name = "GroupBox2"
Me.GroupBox2.Size = New System.Drawing.Size(272, 192)
Me.GroupBox2.TabIndex = 1
Me.GroupBox2.TabStop = False
Me.GroupBox2.Text = "发送短信"
'
'GroupBox3
'
Me.GroupBox3.Controls.Add(Me.txtReceive)
Me.GroupBox3.Location = New System.Drawing.Point(296, 88)
Me.GroupBox3.Name = "GroupBox3"
Me.GroupBox3.Size = New System.Drawing.Size(208, 192)
Me.GroupBox3.TabIndex = 2
Me.GroupBox3.TabStop = False
Me.GroupBox3.Text = "接收短信"
'
'GroupBox4
'
Me.GroupBox4.Controls.Add(Me.Label8)
Me.GroupBox4.Controls.Add(Me.Label7)
Me.GroupBox4.Controls.Add(Me.txtReadCon)
Me.GroupBox4.Controls.Add(Me.txtSendTime)
Me.GroupBox4.Controls.Add(Me.Label6)
Me.GroupBox4.Controls.Add(Me.txtFromNo)
Me.GroupBox4.Controls.Add(Me.Label5)
Me.GroupBox4.Controls.Add(Me.cmdRead)
Me.GroupBox4.Controls.Add(Me.txtIndex)
Me.GroupBox4.Controls.Add(Me.Label4)
Me.GroupBox4.Controls.Add(Me.Axalasunsms1)
Me.GroupBox4.Location = New System.Drawing.Point(8, 288)
Me.GroupBox4.Name = "GroupBox4"
Me.GroupBox4.Size = New System.Drawing.Size(496, 136)
Me.GroupBox4.TabIndex = 3
Me.GroupBox4.TabStop = False
Me.GroupBox4.Text = "读短信"
'
'Label1
'
Me.Label1.AutoSize = True
Me.Label1.Location = New System.Drawing.Point(16, 32)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(91, 17)
Me.Label1.TabIndex = 0
Me.Label1.Text = "短信中心号码:"
'
'txtMsgCenter
'
Me.txtMsgCenter.Location = New System.Drawing.Point(112, 32)
Me.txtMsgCenter.Name = "txtMsgCenter"
Me.txtMsgCenter.Size = New System.Drawing.Size(96, 21)
Me.txtMsgCenter.TabIndex = 1
Me.txtMsgCenter.Text = "+8613800755500"
'
'txtCommPort
'
Me.txtCommPort.Location = New System.Drawing.Point(232, 32)
Me.txtCommPort.Name = "txtCommPort"
Me.txtCommPort.Size = New System.Drawing.Size(40, 21)
Me.txtCommPort.TabIndex = 2
Me.txtCommPort.Text = "1"
'
'cmdConnect
'
Me.cmdConnect.Location = New System.Drawing.Point(296, 32)
Me.cmdConnect.Name = "cmdConnect"
Me.cmdConnect.Size = New System.Drawing.Size(64, 24)
Me.cmdConnect.TabIndex = 3
Me.cmdConnect.Text = "连接"
'
'cmdDisConnect
'
Me.cmdDisConnect.Enabled = False
Me.cmdDisConnect.Location = New System.Drawing.Point(384, 32)
Me.cmdDisConnect.Name = "cmdDisConnect"
Me.cmdDisConnect.Size = New System.Drawing.Size(64, 24)
Me.cmdDisConnect.TabIndex = 4
Me.cmdDisConnect.Text = "断开"
'
'Label2
'
Me.Label2.AutoSize = True
Me.Label2.Location = New System.Drawing.Point(16, 24)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(66, 17)
Me.Label2.TabIndex = 0
Me.Label2.Text = "手机号码:"
'
'Label3
'
Me.Label3.AutoSize = True
Me.Label3.Location = New System.Drawing.Point(16, 56)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(66, 17)
Me.Label3.TabIndex = 1
Me.Label3.Text = "短信内容:"
'
'txtNo
'
Me.txtNo.Location = New System.Drawing.Point(80, 24)
Me.txtNo.Name = "txtNo"
Me.txtNo.Size = New System.Drawing.Size(168, 21)
Me.txtNo.TabIndex = 2
Me.txtNo.Text = ""
'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -