📄 form1.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form Form1
BackColor = &H00FFFF00&
Caption = "s7-200 通讯控件"
ClientHeight = 2895
ClientLeft = 165
ClientTop = 735
ClientWidth = 4365
ForeColor = &H80000010&
LinkTopic = "Form1"
ScaleHeight = 2895
ScaleWidth = 4365
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer1
Interval = 1000
Left = 3840
Top = 1200
End
Begin VB.CommandButton Command6
Caption = "制作"
Height = 495
Left = 2400
TabIndex = 5
Top = 1800
Width = 1200
End
Begin VB.CommandButton Command5
Caption = "公司简介"
Height = 495
Left = 600
TabIndex = 4
Top = 1800
Width = 1200
End
Begin VB.CommandButton Command4
Caption = "串口调试"
Height = 495
Left = 2400
TabIndex = 3
Top = 1000
Width = 1200
End
Begin VB.CommandButton Command3
Caption = "数据写入"
Height = 495
Left = 600
TabIndex = 2
Top = 1000
Width = 1200
End
Begin VB.CommandButton Command2
Caption = "数据查询"
Height = 495
Left = 2400
TabIndex = 1
Top = 240
Width = 1200
End
Begin VB.CommandButton Command1
BackColor = &H000000FF&
Caption = "强制I/O点"
Height = 495
Left = 600
MaskColor = &H0000FF00&
TabIndex = 0
Top = 240
Width = 1200
End
Begin MSComDlg.CommonDialog opendialog
Left = 480
Top = 2520
_ExtentX = 847
_ExtentY = 847
_Version = 393216
DialogTitle = "打开/保存"
End
Begin VB.Label Label1
BackColor = &H00FFFF00&
Height = 255
Left = 1920
TabIndex = 6
Top = 2520
Width = 2175
End
Begin VB.Menu wenjian
Caption = "文件(&F)"
Index = 1
Begin VB.Menu 打开
Caption = "打开"
Index = 2
Shortcut = ^A
End
Begin VB.Menu baocun
Caption = "保存"
Index = 3
Shortcut = ^B
End
Begin VB.Menu dayin
Caption = "打印"
Index = 4
Shortcut = ^D
End
Begin VB.Menu 分界符
Caption = "_____"
End
Begin VB.Menu tuichu
Caption = "退出"
Index = 6
Shortcut = ^Z
End
End
Begin VB.Menu bianji
Caption = "编辑(&E)"
Index = 5
Begin VB.Menu jianqie
Caption = "剪切"
Index = 7
Shortcut = ^X
End
Begin VB.Menu fuzhi
Caption = "复制"
Index = 8
Shortcut = ^C
End
Begin VB.Menu niantie
Caption = "粘贴"
Shortcut = ^V
End
End
Begin VB.Menu geshi
Caption = "格式(&O)"
Index = 9
Begin VB.Menu zuoduiqi
Caption = "左对齐"
Index = 11
End
Begin VB.Menu juzhong
Caption = "居中"
Index = 12
End
Begin VB.Menu youduiqi
Caption = "右对齐"
End
End
Begin VB.Menu chuangkou
Caption = "窗口(&W)"
Begin VB.Menu pingpu
Caption = "平铺"
Index = 13
End
Begin VB.Menu chongdie
Caption = "重叠"
Index = 14
End
End
Begin VB.Menu tuichu1
Caption = "退出系统"
Index = 14
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Sub Sleep Lib "kernel32" (ByVal dwseconds As Long)
Private Sub baocun_Click(Index As Integer)
opendialog.Action = 2
End Sub
Private Sub Command1_Click()
Unload Form2
Unload Form5
Unload Form4
Form3.Show
End Sub
Private Sub Command2_Click()
Unload Form2
Unload Form3
Unload Form5
Form4.Show
End Sub
Private Sub Command3_Click()
Unload Form2
Unload Form3
Unload Form4
Form5.Show
End Sub
Private Sub Command4_Click()
Unload Form4
Unload Form3
Unload Form5
Form2.Show
End Sub
Private Sub Command5_Click()
frmSplash1.Show
End Sub
Private Sub Command6_Click()
frmSplash.Show
End Sub
Private Sub dayin_Click(Index As Integer)
opendialog.Action = 5
End Sub
Private Sub MSComm1_OnComm()
yy = MSComm1.Input
End Sub
Private Sub Frame1_DragDrop(Source As Control, X As Single, Y As Single)
End Sub
Private Sub Timer1_Timer()
Label1.Caption = Now
End Sub
Private Sub tuichu_Click(Index As Integer)
If MsgBox("确认关闭本系统吗?", 1 + 32 + 0, "关闭") = 1 Then
Unload Form1
Unload Form2
Unload Form3
Unload Form4
Unload Form5
End If
End Sub
Private Sub tuichu1_Click(Index As Integer)
If MsgBox("确认关闭本系统吗?", 1 + 32 + 0, "关闭") = 1 Then
Unload Form1
Unload Form2
Unload Form3
Unload Form4
Unload Form5
End If
End Sub
Private Sub 打开_Click(Index As Integer)
opendialog.Action = 1
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -