📄 app_main.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.MDIForm App_Main
BackColor = &H8000000C&
Caption = "485抄表程序"
ClientHeight = 6945
ClientLeft = 165
ClientTop = 735
ClientWidth = 8850
LinkTopic = "MDIForm1"
LockControls = -1 'True
StartUpPosition = 3 '窗口缺省
WindowState = 2 'Maximized
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 810
Left = 0
TabIndex = 1
Top = 0
Width = 8850
_ExtentX = 15610
_ExtentY = 1429
ButtonWidth = 1455
ButtonHeight = 1376
Appearance = 1
Style = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 11
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "485抄表"
Key = "bar_cb"
ImageIndex = 1
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "规约测试"
Key = "bar_cs"
ImageIndex = 2
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 4
EndProperty
BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "系统帮助"
Key = "bar_bz"
ImageIndex = 3
EndProperty
BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "关于"
Key = "bar_gy"
ImageIndex = 4
EndProperty
BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "退出程序"
Key = "bar_tc"
ImageIndex = 5
EndProperty
BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
EndProperty
End
Begin MSComctlLib.ImageList ImageList1
Left = 6480
Top = 120
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 5
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "App_Main.frx":0000
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "App_Main.frx":0452
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "App_Main.frx":08A4
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "App_Main.frx":0CF6
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "App_Main.frx":1148
Key = ""
EndProperty
EndProperty
End
Begin MSComctlLib.StatusBar StatusBar1
Align = 2 'Align Bottom
Height = 330
Left = 0
TabIndex = 0
Top = 6615
Width = 8850
_ExtentX = 15610
_ExtentY = 582
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 3
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 2
Object.Width = 1164
MinWidth = 707
Picture = "App_Main.frx":159A
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 1
Object.Width = 9040
MinWidth = 4410
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 5
Alignment = 2
AutoSize = 1
Object.Width = 4808
MinWidth = 178
TextSave = "14:36"
EndProperty
EndProperty
End
Begin VB.Menu SYS
Caption = "系统配置"
Begin VB.Menu PZ_FA
Caption = "用户方案配置"
End
Begin VB.Menu menuline_001
Caption = "-"
End
Begin VB.Menu GYCS_TY
Caption = "通用规约测试"
End
Begin VB.Menu GYCS_645
Caption = "645规约测试"
End
Begin VB.Menu menuline_002
Caption = "-"
End
Begin VB.Menu TC
Caption = "退出程序"
End
End
Begin VB.Menu SYS_CB
Caption = "系统抄表"
Begin VB.Menu CB
Caption = "系统抄表"
End
End
Begin VB.Menu SYS_HELP
Caption = "系统帮助"
Begin VB.Menu shelp
Caption = "帮助"
End
Begin VB.Menu menuline_003
Caption = "-"
End
Begin VB.Menu sabout
Caption = "关于"
End
End
End
Attribute VB_Name = "App_Main"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居收藏整理
'发布日期:2007/09/27
'描 述:电表业645规约的电表485通讯代码
'网 站:http://www.Mndsoft.com/ (VB6源码博客)
'网 站:http://www.VbDnet.com/ (VB.NET源码博客,主要基于.NET2005)
'e-mail :Mndsoft@163.com
'e-mail :Mndsoft@126.com
'OICQ :88382850
' 如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************
Private Sub CB_Click()
Chose_Project.Show
End Sub
Private Sub GYCS_645_Click()
Test645.Show
End Sub
Private Sub GYCS_TY_Click()
FrmComTest.Show
End Sub
Private Sub MDIForm_Load()
If Dir(App.Path & "\back.jpg") <> "" Then Me.Picture = LoadPicture(gBackPicture)
USkinInit "", "", App.Path & "\skin.u3"
'USkinLoadSkin App.Path & "\King.u3"
End Sub
Private Sub PZ_FA_Click()
Project_Configure.Show
End Sub
Private Sub sabout_Click()
MyAbout.Show vbModal
End Sub
Private Sub shelp_Click()
If Dir(App.Path & "\readme.txt") <> "" Then
StartDoc App.Path & "\readme.txt"
End If
End Sub
Private Sub tc_Click()
Unload Me
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Key
Case "bar_cb"
Call CB_Click
Case "bar_cs"
FrmComTest.Show
Case "bar_bz"
If Dir(App.Path & "\readme.txt") <> "" Then
StartDoc App.Path & "\readme.txt"
End If
Case "bar_gy"
MyAbout.Show vbModal
Case "bar_tc"
Unload Me
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -