📄 form1.vb
字号:
Option Strict Off
Option Explicit On
Friend Class Form1
Inherits System.Windows.Forms.Form
#Region "Windows 窗体设计器生成的代码"
Public Sub New()
MyBase.New()
If m_vb6FormDefInstance Is Nothing Then
If m_InitializingDefInstance Then
m_vb6FormDefInstance = Me
Else
Try
'对于启动窗体,所创建的第一个实例为默认实例。
If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType Is Me.GetType Then
m_vb6FormDefInstance = Me
End If
Catch
End Try
End If
End If
'此调用是 Windows 窗体设计器所必需的。
InitializeComponent()
End Sub
'窗体重写处置,以清理组件列表。
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
Public ToolTip1 As System.Windows.Forms.ToolTip
Public WithEvents ckHex As System.Windows.Forms.CheckBox
Public WithEvents Timer3 As System.Windows.Forms.Timer
Public WithEvents Winsock1 As AxMSWinsockLib.AxWinsock
Public WithEvents Text2 As System.Windows.Forms.TextBox
Public WithEvents Text1 As System.Windows.Forms.TextBox
Public WithEvents ImageList2 As AxMSComctlLib.AxImageList
Public WithEvents Timer2 As System.Windows.Forms.Timer
Public WithEvents StatusBar1 As AxMSComctlLib.AxStatusBar
Public WithEvents ImageList1 As AxMSComctlLib.AxImageList
Public WithEvents Timer1 As System.Windows.Forms.Timer
Public WithEvents Text3 As System.Windows.Forms.TextBox
Public WithEvents ListView1 As AxMSComctlLib.AxListView
Public WithEvents Text4 As System.Windows.Forms.TextBox
Public WithEvents Toolbar1 As AxMSComctlLib.AxToolbar
Public WithEvents miQuit As System.Windows.Forms.MenuItem
Public WithEvents miFile As System.Windows.Forms.MenuItem
Public WithEvents miSetting As System.Windows.Forms.MenuItem
Public WithEvents miSet As System.Windows.Forms.MenuItem
Public WithEvents miStartServer As System.Windows.Forms.MenuItem
Public WithEvents miStopServer As System.Windows.Forms.MenuItem
Public WithEvents miOffLine As System.Windows.Forms.MenuItem
Public WithEvents miSendData As System.Windows.Forms.MenuItem
Public WithEvents miSendK As System.Windows.Forms.MenuItem
Public WithEvents miClear As System.Windows.Forms.MenuItem
Public WithEvents miS1 As System.Windows.Forms.MenuItem
Public WithEvents miStartNoProService As System.Windows.Forms.MenuItem
Public WithEvents miStopNoProService As System.Windows.Forms.MenuItem
Public WithEvents miS4 As System.Windows.Forms.MenuItem
Public WithEvents miNoProBack As System.Windows.Forms.MenuItem
Public WithEvents miS3 As System.Windows.Forms.MenuItem
Public WithEvents menu_AddOneUser As System.Windows.Forms.MenuItem
Public WithEvents miControl As System.Windows.Forms.MenuItem
Public WithEvents miViewData As System.Windows.Forms.MenuItem
Public WithEvents miHEXShow As System.Windows.Forms.MenuItem
Public WithEvents miAnswer As System.Windows.Forms.MenuItem
Public WithEvents miCount As System.Windows.Forms.MenuItem
Public WithEvents miShowView As System.Windows.Forms.MenuItem
Public WithEvents miHelpContent As System.Windows.Forms.MenuItem
Public WithEvents miAbout As System.Windows.Forms.MenuItem
Public WithEvents miHelp As System.Windows.Forms.MenuItem
Public MainMenu1 As System.Windows.Forms.MainMenu
'注意: 以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器来修改它。
'不要使用代码编辑器修改它。
Public WithEvents Command1 As System.Windows.Forms.Button
<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.ckHex = New System.Windows.Forms.CheckBox
Me.Timer3 = New System.Windows.Forms.Timer(Me.components)
Me.Winsock1 = New AxMSWinsockLib.AxWinsock
Me.Text2 = New System.Windows.Forms.TextBox
Me.Text1 = New System.Windows.Forms.TextBox
Me.ImageList2 = New AxMSComctlLib.AxImageList
Me.Timer2 = New System.Windows.Forms.Timer(Me.components)
Me.StatusBar1 = New AxMSComctlLib.AxStatusBar
Me.ImageList1 = New AxMSComctlLib.AxImageList
Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
Me.Text3 = New System.Windows.Forms.TextBox
Me.ListView1 = New AxMSComctlLib.AxListView
Me.Toolbar1 = New AxMSComctlLib.AxToolbar
Me.Text4 = New System.Windows.Forms.TextBox
Me.MainMenu1 = New System.Windows.Forms.MainMenu
Me.miFile = New System.Windows.Forms.MenuItem
Me.miQuit = New System.Windows.Forms.MenuItem
Me.miSet = New System.Windows.Forms.MenuItem
Me.miSetting = New System.Windows.Forms.MenuItem
Me.miControl = New System.Windows.Forms.MenuItem
Me.miStartServer = New System.Windows.Forms.MenuItem
Me.miStopServer = New System.Windows.Forms.MenuItem
Me.miOffLine = New System.Windows.Forms.MenuItem
Me.miSendData = New System.Windows.Forms.MenuItem
Me.miSendK = New System.Windows.Forms.MenuItem
Me.miClear = New System.Windows.Forms.MenuItem
Me.miS1 = New System.Windows.Forms.MenuItem
Me.miStartNoProService = New System.Windows.Forms.MenuItem
Me.miStopNoProService = New System.Windows.Forms.MenuItem
Me.miS4 = New System.Windows.Forms.MenuItem
Me.miNoProBack = New System.Windows.Forms.MenuItem
Me.miS3 = New System.Windows.Forms.MenuItem
Me.menu_AddOneUser = New System.Windows.Forms.MenuItem
Me.miShowView = New System.Windows.Forms.MenuItem
Me.miViewData = New System.Windows.Forms.MenuItem
Me.miHEXShow = New System.Windows.Forms.MenuItem
Me.miAnswer = New System.Windows.Forms.MenuItem
Me.miCount = New System.Windows.Forms.MenuItem
Me.miHelp = New System.Windows.Forms.MenuItem
Me.miHelpContent = New System.Windows.Forms.MenuItem
Me.miAbout = New System.Windows.Forms.MenuItem
Me.Command1 = New System.Windows.Forms.Button
CType(Me.Winsock1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.ImageList2, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.StatusBar1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.ImageList1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.ListView1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.Toolbar1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.Toolbar1.SuspendLayout()
Me.SuspendLayout()
'
'ckHex
'
Me.ckHex.BackColor = System.Drawing.SystemColors.Control
Me.ckHex.Cursor = System.Windows.Forms.Cursors.Default
Me.ckHex.ForeColor = System.Drawing.SystemColors.ControlText
Me.ckHex.Location = New System.Drawing.Point(432, 288)
Me.ckHex.Name = "ckHex"
Me.ckHex.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.ckHex.Size = New System.Drawing.Size(161, 17)
Me.ckHex.TabIndex = 7
Me.ckHex.Text = "HEX发送(每字节2位如:01)"
'
'Timer3
'
Me.Timer3.Interval = 200
'
'Winsock1
'
Me.Winsock1.Enabled = True
Me.Winsock1.Location = New System.Drawing.Point(104, 56)
Me.Winsock1.Name = "Winsock1"
Me.Winsock1.OcxState = CType(resources.GetObject("Winsock1.OcxState"), System.Windows.Forms.AxHost.State)
Me.Winsock1.Size = New System.Drawing.Size(28, 28)
Me.Winsock1.TabIndex = 8
'
'Text2
'
Me.Text2.AcceptsReturn = True
Me.Text2.AutoSize = False
Me.Text2.BackColor = System.Drawing.SystemColors.Info
Me.Text2.Cursor = System.Windows.Forms.Cursors.IBeam
Me.Text2.ForeColor = System.Drawing.SystemColors.WindowText
Me.Text2.Location = New System.Drawing.Point(0, 288)
Me.Text2.MaxLength = 0
Me.Text2.Name = "Text2"
Me.Text2.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Text2.Size = New System.Drawing.Size(121, 20)
Me.Text2.TabIndex = 6
Me.Text2.Text = ""
'
'Text1
'
Me.Text1.AcceptsReturn = True
Me.Text1.AutoSize = False
Me.Text1.BackColor = System.Drawing.SystemColors.Info
Me.Text1.Cursor = System.Windows.Forms.Cursors.IBeam
Me.Text1.ForeColor = System.Drawing.SystemColors.WindowText
Me.Text1.Location = New System.Drawing.Point(128, 288)
Me.Text1.MaxLength = 1024
Me.Text1.Name = "Text1"
Me.Text1.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Text1.Size = New System.Drawing.Size(297, 20)
Me.Text1.TabIndex = 5
Me.Text1.Text = ""
'
'ImageList2
'
Me.ImageList2.Enabled = True
Me.ImageList2.Location = New System.Drawing.Point(400, 64)
Me.ImageList2.Name = "ImageList2"
Me.ImageList2.OcxState = CType(resources.GetObject("ImageList2.OcxState"), System.Windows.Forms.AxHost.State)
Me.ImageList2.Size = New System.Drawing.Size(38, 38)
Me.ImageList2.TabIndex = 9
'
'Timer2
'
Me.Timer2.Interval = 1000
'
'StatusBar1
'
Me.StatusBar1.Dock = System.Windows.Forms.DockStyle.Bottom
Me.StatusBar1.Location = New System.Drawing.Point(0, 332)
Me.StatusBar1.Name = "StatusBar1"
Me.StatusBar1.OcxState = CType(resources.GetObject("StatusBar1.OcxState"), System.Windows.Forms.AxHost.State)
Me.StatusBar1.Size = New System.Drawing.Size(617, 20)
Me.StatusBar1.TabIndex = 1
'
'ImageList1
'
Me.ImageList1.Enabled = True
Me.ImageList1.Location = New System.Drawing.Point(248, 8)
Me.ImageList1.Name = "ImageList1"
Me.ImageList1.OcxState = CType(resources.GetObject("ImageList1.OcxState"), System.Windows.Forms.AxHost.State)
Me.ImageList1.Size = New System.Drawing.Size(38, 38)
Me.ImageList1.TabIndex = 10
'
'Timer1
'
Me.Timer1.Interval = 10000
'
'Text3
'
Me.Text3.AcceptsReturn = True
Me.Text3.AutoSize = False
Me.Text3.BackColor = System.Drawing.Color.FromArgb(CType(0, Byte), CType(128, Byte), CType(128, Byte))
Me.Text3.Cursor = System.Windows.Forms.Cursors.IBeam
Me.Text3.ForeColor = System.Drawing.SystemColors.HighlightText
Me.Text3.Location = New System.Drawing.Point(0, 184)
Me.Text3.MaxLength = 0
Me.Text3.Multiline = True
Me.Text3.Name = "Text3"
Me.Text3.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Text3.ScrollBars = System.Windows.Forms.ScrollBars.Both
Me.Text3.Size = New System.Drawing.Size(512, 97)
Me.Text3.TabIndex = 0
Me.Text3.Text = ""
Me.Text3.WordWrap = False
'
'ListView1
'
Me.ListView1.Location = New System.Drawing.Point(0, 40)
Me.ListView1.Name = "ListView1"
Me.ListView1.OcxState = CType(resources.GetObject("ListView1.OcxState"), System.Windows.Forms.AxHost.State)
Me.ListView1.Size = New System.Drawing.Size(513, 140)
Me.ListView1.TabIndex = 2
'
'Toolbar1
'
Me.Toolbar1.Controls.Add(Me.Command1)
Me.Toolbar1.Controls.Add(Me.Text4)
Me.Toolbar1.Dock = System.Windows.Forms.DockStyle.Top
Me.Toolbar1.Location = New System.Drawing.Point(0, 0)
Me.Toolbar1.Name = "Toolbar1"
Me.Toolbar1.OcxState = CType(resources.GetObject("Toolbar1.OcxState"), System.Windows.Forms.AxHost.State)
Me.Toolbar1.Size = New System.Drawing.Size(617, 40)
Me.Toolbar1.TabIndex = 3
'
'Text4
'
Me.Text4.AcceptsReturn = True
Me.Text4.AutoSize = False
Me.Text4.BackColor = System.Drawing.Color.White
Me.Text4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.Text4.Cursor = System.Windows.Forms.Cursors.IBeam
Me.Text4.Font = New System.Drawing.Font("Arial", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Text4.ForeColor = System.Drawing.Color.Blue
Me.Text4.Location = New System.Drawing.Point(256, 4)
Me.Text4.MaxLength = 0
Me.Text4.Name = "Text4"
Me.Text4.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Text4.Size = New System.Drawing.Size(249, 32)
Me.Text4.TabIndex = 4
Me.Text4.Text = "0"
Me.Text4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
'
'MainMenu1
'
Me.MainMenu1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.miFile, Me.miSet, Me.miControl, Me.miShowView, Me.miHelp})
'
'miFile
'
Me.miFile.Index = 0
Me.miFile.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.miQuit})
Me.miFile.Text = "文件(&F)"
'
'miQuit
'
Me.miQuit.Index = 0
Me.miQuit.Text = "退出(&Q)"
'
'miSet
'
Me.miSet.Index = 1
Me.miSet.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.miSetting})
Me.miSet.Text = "设置(&S)"
'
'miSetting
'
Me.miSetting.Index = 0
Me.miSetting.Text = "设置(&S)"
'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -