📄 frmmain1.vb
字号:
Option Strict Off
Option Explicit On
Friend Class FrmMain1
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 Timer3 As System.Windows.Forms.Timer
Public WithEvents Timer2 As System.Windows.Forms.Timer
Public WithEvents Text6 As System.Windows.Forms.TextBox
Public WithEvents Command1 As System.Windows.Forms.Button
Public WithEvents Timer1 As System.Windows.Forms.Timer
Public WithEvents TextBitNumW As System.Windows.Forms.TextBox
Public WithEvents CmdWriteB1 As System.Windows.Forms.Button
Public WithEvents CmdWriteB0 As System.Windows.Forms.Button
Public WithEvents CobWBNumber As System.Windows.Forms.ComboBox
Public WithEvents TextAddWB As System.Windows.Forms.TextBox
Public WithEvents Text12 As System.Windows.Forms.TextBox
Public WithEvents Label21 As System.Windows.Forms.Label
Public WithEvents Label19 As System.Windows.Forms.Label
Public WithEvents Label18 As System.Windows.Forms.Label
Public WithEvents Frame7 As System.Windows.Forms.GroupBox
Public WithEvents TextBitNumR As System.Windows.Forms.TextBox
Public WithEvents Text9 As System.Windows.Forms.TextBox
Public WithEvents TextAddRB As System.Windows.Forms.TextBox
Public WithEvents CobRBNumber As System.Windows.Forms.ComboBox
Public WithEvents TextDataRB As System.Windows.Forms.TextBox
Public WithEvents CmdReadB As System.Windows.Forms.Button
Public WithEvents Label22 As System.Windows.Forms.Label
Public WithEvents Label17 As System.Windows.Forms.Label
Public WithEvents Label16 As System.Windows.Forms.Label
Public WithEvents Label15 As System.Windows.Forms.Label
Public WithEvents Frame6 As System.Windows.Forms.GroupBox
Public WithEvents Text8 As System.Windows.Forms.TextBox
Public WithEvents TextAddWD As System.Windows.Forms.TextBox
Public WithEvents CobWDNumber As System.Windows.Forms.ComboBox
Public WithEvents TextDataD As System.Windows.Forms.TextBox
Public WithEvents CmdWriteVD As System.Windows.Forms.Button
Public WithEvents Label14 As System.Windows.Forms.Label
Public WithEvents Label13 As System.Windows.Forms.Label
Public WithEvents Label12 As System.Windows.Forms.Label
Public WithEvents Frame4 As System.Windows.Forms.GroupBox
Public WithEvents Text5 As System.Windows.Forms.TextBox
Public WithEvents TextAddRD As System.Windows.Forms.TextBox
Public WithEvents CobRDNumber As System.Windows.Forms.ComboBox
Public WithEvents TextDataRD As System.Windows.Forms.TextBox
Public WithEvents CmdReadVD As System.Windows.Forms.Button
Public WithEvents Label11 As System.Windows.Forms.Label
Public WithEvents Label10 As System.Windows.Forms.Label
Public WithEvents Label9 As System.Windows.Forms.Label
Public WithEvents Frame3 As System.Windows.Forms.GroupBox
Public WithEvents CmdWriteVW As System.Windows.Forms.Button
Public WithEvents TextDataW As System.Windows.Forms.TextBox
Public WithEvents CobWWNumber As System.Windows.Forms.ComboBox
Public WithEvents TextAddWW As System.Windows.Forms.TextBox
Public WithEvents Text4 As System.Windows.Forms.TextBox
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 Frame2 As System.Windows.Forms.GroupBox
Public WithEvents CmdReadVW As System.Windows.Forms.Button
Public WithEvents TextDataRW As System.Windows.Forms.TextBox
Public WithEvents CobRWNumber As System.Windows.Forms.ComboBox
Public WithEvents TextAddRW As System.Windows.Forms.TextBox
Public WithEvents Text1 As System.Windows.Forms.TextBox
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 Frame1 As System.Windows.Forms.GroupBox
Public WithEvents CombAddPLC As System.Windows.Forms.ComboBox
Public WithEvents CmdPort As System.Windows.Forms.Button
Public WithEvents ComboPort As System.Windows.Forms.ComboBox
Public WithEvents Label7 As System.Windows.Forms.Label
Public WithEvents Label8 As System.Windows.Forms.Label
Public WithEvents Frame5 As System.Windows.Forms.GroupBox
Public WithEvents MSComm1 As AxMSCommLib.AxMSComm
Public WithEvents MnuCom1 As System.Windows.Forms.MenuItem
Public WithEvents MnuCom2 As System.Windows.Forms.MenuItem
Public WithEvents MnuPort As System.Windows.Forms.MenuItem
Public MainMenu1 As System.Windows.Forms.MainMenu
'注意: 以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器来修改它。
'不要使用代码编辑器修改它。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(FrmMain1))
Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
Me.Timer3 = New System.Windows.Forms.Timer(Me.components)
Me.Timer2 = New System.Windows.Forms.Timer(Me.components)
Me.Text6 = New System.Windows.Forms.TextBox
Me.Command1 = New System.Windows.Forms.Button
Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
Me.Frame7 = New System.Windows.Forms.GroupBox
Me.TextBitNumW = New System.Windows.Forms.TextBox
Me.CmdWriteB1 = New System.Windows.Forms.Button
Me.CmdWriteB0 = New System.Windows.Forms.Button
Me.CobWBNumber = New System.Windows.Forms.ComboBox
Me.TextAddWB = New System.Windows.Forms.TextBox
Me.Text12 = New System.Windows.Forms.TextBox
Me.Label21 = New System.Windows.Forms.Label
Me.Label19 = New System.Windows.Forms.Label
Me.Label18 = New System.Windows.Forms.Label
Me.Frame6 = New System.Windows.Forms.GroupBox
Me.TextBitNumR = New System.Windows.Forms.TextBox
Me.Text9 = New System.Windows.Forms.TextBox
Me.TextAddRB = New System.Windows.Forms.TextBox
Me.CobRBNumber = New System.Windows.Forms.ComboBox
Me.TextDataRB = New System.Windows.Forms.TextBox
Me.CmdReadB = New System.Windows.Forms.Button
Me.Label22 = New System.Windows.Forms.Label
Me.Label17 = New System.Windows.Forms.Label
Me.Label16 = New System.Windows.Forms.Label
Me.Label15 = New System.Windows.Forms.Label
Me.Frame4 = New System.Windows.Forms.GroupBox
Me.Text8 = New System.Windows.Forms.TextBox
Me.TextAddWD = New System.Windows.Forms.TextBox
Me.CobWDNumber = New System.Windows.Forms.ComboBox
Me.TextDataD = New System.Windows.Forms.TextBox
Me.CmdWriteVD = New System.Windows.Forms.Button
Me.Label14 = New System.Windows.Forms.Label
Me.Label13 = New System.Windows.Forms.Label
Me.Label12 = New System.Windows.Forms.Label
Me.Frame3 = New System.Windows.Forms.GroupBox
Me.Text5 = New System.Windows.Forms.TextBox
Me.TextAddRD = New System.Windows.Forms.TextBox
Me.CobRDNumber = New System.Windows.Forms.ComboBox
Me.TextDataRD = New System.Windows.Forms.TextBox
Me.CmdReadVD = New System.Windows.Forms.Button
Me.Label11 = New System.Windows.Forms.Label
Me.Label10 = New System.Windows.Forms.Label
Me.Label9 = New System.Windows.Forms.Label
Me.Frame2 = New System.Windows.Forms.GroupBox
Me.CmdWriteVW = New System.Windows.Forms.Button
Me.TextDataW = New System.Windows.Forms.TextBox
Me.CobWWNumber = New System.Windows.Forms.ComboBox
Me.TextAddWW = New System.Windows.Forms.TextBox
Me.Text4 = New System.Windows.Forms.TextBox
Me.Label6 = New System.Windows.Forms.Label
Me.Label5 = New System.Windows.Forms.Label
Me.Label4 = New System.Windows.Forms.Label
Me.Frame1 = New System.Windows.Forms.GroupBox
Me.CmdReadVW = New System.Windows.Forms.Button
Me.TextDataRW = New System.Windows.Forms.TextBox
Me.CobRWNumber = New System.Windows.Forms.ComboBox
Me.TextAddRW = New System.Windows.Forms.TextBox
Me.Text1 = New System.Windows.Forms.TextBox
Me.Label3 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.Frame5 = New System.Windows.Forms.GroupBox
Me.CombAddPLC = New System.Windows.Forms.ComboBox
Me.CmdPort = New System.Windows.Forms.Button
Me.ComboPort = New System.Windows.Forms.ComboBox
Me.Label7 = New System.Windows.Forms.Label
Me.Label8 = New System.Windows.Forms.Label
Me.MSComm1 = New AxMSCommLib.AxMSComm
Me.MainMenu1 = New System.Windows.Forms.MainMenu
Me.MnuPort = New System.Windows.Forms.MenuItem
Me.MnuCom1 = New System.Windows.Forms.MenuItem
Me.MnuCom2 = New System.Windows.Forms.MenuItem
Me.Frame7.SuspendLayout()
Me.Frame6.SuspendLayout()
Me.Frame4.SuspendLayout()
Me.Frame3.SuspendLayout()
Me.Frame2.SuspendLayout()
Me.Frame1.SuspendLayout()
Me.Frame5.SuspendLayout()
CType(Me.MSComm1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'Timer3
'
Me.Timer3.Interval = 1000
'
'Timer2
'
Me.Timer2.Interval = 1000
'
'Text6
'
Me.Text6.AcceptsReturn = True
Me.Text6.AutoSize = False
Me.Text6.BackColor = System.Drawing.SystemColors.Window
Me.Text6.Cursor = System.Windows.Forms.Cursors.IBeam
Me.Text6.ForeColor = System.Drawing.SystemColors.WindowText
Me.Text6.Location = New System.Drawing.Point(384, 9)
Me.Text6.MaxLength = 0
Me.Text6.Name = "Text6"
Me.Text6.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Text6.Size = New System.Drawing.Size(308, 35)
Me.Text6.TabIndex = 55
Me.Text6.Text = ""
'
'Command1
'
Me.Command1.BackColor = System.Drawing.SystemColors.Control
Me.Command1.Cursor = System.Windows.Forms.Cursors.Default
Me.Command1.ForeColor = System.Drawing.SystemColors.ControlText
Me.Command1.Location = New System.Drawing.Point(278, 9)
Me.Command1.Name = "Command1"
Me.Command1.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Command1.Size = New System.Drawing.Size(88, 35)
Me.Command1.TabIndex = 54
Me.Command1.Text = "下一页"
'
'Timer1
'
Me.Timer1.Interval = 1000
'
'Frame7
'
Me.Frame7.BackColor = System.Drawing.SystemColors.Control
Me.Frame7.Controls.Add(Me.TextBitNumW)
Me.Frame7.Controls.Add(Me.CmdWriteB1)
Me.Frame7.Controls.Add(Me.CmdWriteB0)
Me.Frame7.Controls.Add(Me.CobWBNumber)
Me.Frame7.Controls.Add(Me.TextAddWB)
Me.Frame7.Controls.Add(Me.Text12)
Me.Frame7.Controls.Add(Me.Label21)
Me.Frame7.Controls.Add(Me.Label19)
Me.Frame7.Controls.Add(Me.Label18)
Me.Frame7.ForeColor = System.Drawing.SystemColors.ControlText
Me.Frame7.Location = New System.Drawing.Point(365, 439)
Me.Frame7.Name = "Frame7"
Me.Frame7.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Frame7.Size = New System.Drawing.Size(356, 174)
Me.Frame7.TabIndex = 47
Me.Frame7.TabStop = False
Me.Frame7.Text = "写寄存器M10.0"
'
'TextBitNumW
'
Me.TextBitNumW.AcceptsReturn = True
Me.TextBitNumW.AutoSize = False
Me.TextBitNumW.BackColor = System.Drawing.SystemColors.Window
Me.TextBitNumW.Cursor = System.Windows.Forms.Cursors.IBeam
Me.TextBitNumW.ForeColor = System.Drawing.SystemColors.WindowText
Me.TextBitNumW.Location = New System.Drawing.Point(173, 52)
Me.TextBitNumW.MaxLength = 0
Me.TextBitNumW.Name = "TextBitNumW"
Me.TextBitNumW.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.TextBitNumW.Size = New System.Drawing.Size(39, 27)
Me.TextBitNumW.TabIndex = 57
Me.TextBitNumW.Text = "0"
'
'CmdWriteB1
'
Me.CmdWriteB1.BackColor = System.Drawing.SystemColors.Control
Me.CmdWriteB1.Cursor = System.Windows.Forms.Cursors.Default
Me.CmdWriteB1.Enabled = False
Me.CmdWriteB1.ForeColor = System.Drawing.SystemColors.ControlText
Me.CmdWriteB1.Location = New System.Drawing.Point(250, 43)
Me.CmdWriteB1.Name = "CmdWriteB1"
Me.CmdWriteB1.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.CmdWriteB1.Size = New System.Drawing.Size(78, 27)
Me.CmdWriteB1.TabIndex = 56
Me.CmdWriteB1.Text = "open"
'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -