📄 frmmain.frm
字号:
VERSION 5.00
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "comctl32.ocx"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "Comdlg32.ocx"
Begin VB.Form frmMain
Caption = "房产信息管理系统(1.0版)"
ClientHeight = 5670
ClientLeft = 165
ClientTop = 630
ClientWidth = 7380
Icon = "frmMain.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
ScaleHeight = 5670
ScaleWidth = 7380
StartUpPosition = 2 '屏幕中心
WindowState = 2 'Maximized
Begin ComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 480
Left = 0
TabIndex = 1
Top = 0
Width = 7380
_ExtentX = 13018
_ExtentY = 847
ButtonWidth = 714
ButtonHeight = 688
Wrappable = 0 'False
Appearance = 1
ImageList = "ImageList1"
_Version = 327682
BeginProperty Buttons {0713E452-850A-101B-AFC0-4210102A8DA7}
NumButtons = 10
BeginProperty Button1 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = ""
Object.ToolTipText = "退出系统"
Object.Tag = ""
ImageIndex = 1
EndProperty
BeginProperty Button2 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = ""
Object.Tag = ""
Style = 3
MixedState = -1 'True
EndProperty
BeginProperty Button3 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = ""
Object.ToolTipText = "科学计算器"
Object.Tag = ""
ImageIndex = 2
EndProperty
BeginProperty Button4 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = ""
Object.ToolTipText = "CD播放器"
Object.Tag = ""
ImageIndex = 3
EndProperty
BeginProperty Button5 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = ""
Object.ToolTipText = "Notepad写字板"
Object.Tag = ""
ImageIndex = 4
EndProperty
BeginProperty Button6 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = ""
Object.ToolTipText = "Writer书写器"
Object.Tag = ""
ImageIndex = 5
EndProperty
BeginProperty Button7 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = ""
Object.ToolTipText = "小小画板"
Object.Tag = ""
ImageIndex = 6
EndProperty
BeginProperty Button8 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = ""
Object.ToolTipText = "文件浏览器"
Object.Tag = ""
ImageIndex = 8
EndProperty
BeginProperty Button9 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = ""
Object.Tag = ""
Style = 3
MixedState = -1 'True
EndProperty
BeginProperty Button10 {0713F354-850A-101B-AFC0-4210102A8DA7}
Key = ""
Object.ToolTipText = "帮助文件"
Object.Tag = ""
ImageIndex = 7
EndProperty
EndProperty
End
Begin MSComDlg.CommonDialog CDlog1
Left = 2850
Top = 2190
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin ComctlLib.StatusBar StatusBar1
Align = 2 'Align Bottom
Height = 375
Left = 0
TabIndex = 0
Top = 5295
Width = 7380
_ExtentX = 13018
_ExtentY = 661
SimpleText = ""
_Version = 327682
BeginProperty Panels {0713E89E-850A-101B-AFC0-4210102A8DA7}
NumPanels = 3
BeginProperty Panel1 {0713E89F-850A-101B-AFC0-4210102A8DA7}
Style = 6
Alignment = 1
AutoSize = 2
Text = "中国人民"
TextSave = "2001-3-24"
Key = ""
Object.Tag = ""
EndProperty
BeginProperty Panel2 {0713E89F-850A-101B-AFC0-4210102A8DA7}
Style = 5
Alignment = 1
AutoSize = 2
Text = ""
TextSave = "19:38"
Key = ""
Object.Tag = ""
EndProperty
BeginProperty Panel3 {0713E89F-850A-101B-AFC0-4210102A8DA7}
AutoSize = 1
Object.Width = 7329
Text = "房产信息管理系统由益友软件开发部开发,1999年7月"
TextSave = "房产信息管理系统由益友软件开发部开发,1999年7月"
Key = ""
Object.Tag = ""
Object.ToolTipText = ""
EndProperty
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Line Line2
BorderColor = &H00404040&
X1 = 0
X2 = 1980
Y1 = 480
Y2 = 480
End
Begin VB.Line Line1
BorderColor = &H80000010&
X1 = 30
X2 = 3960
Y1 = 420
Y2 = 420
End
Begin ComctlLib.ImageList ImageList1
Left = 1320
Top = 1320
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 20
ImageHeight = 20
MaskColor = 16711680
_Version = 327682
BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7}
NumListImages = 8
BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "frmMain.frx":030A
Key = ""
EndProperty
BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "frmMain.frx":0624
Key = ""
EndProperty
BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "frmMain.frx":093E
Key = ""
EndProperty
BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "frmMain.frx":0C58
Key = ""
EndProperty
BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "frmMain.frx":0F72
Key = ""
EndProperty
BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "frmMain.frx":128C
Key = ""
EndProperty
BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "frmMain.frx":15A6
Key = ""
EndProperty
BeginProperty ListImage8 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
Picture = "frmMain.frx":18C0
Key = ""
EndProperty
EndProperty
End
Begin VB.Menu mnuFile
Caption = "【文件&F】"
Begin VB.Menu MNUOPEN
Caption = "打开文档[&O]"
End
Begin VB.Menu MNU12
Caption = "-"
End
Begin VB.Menu MNUBACK
Caption = "系统设置[&S]"
Begin VB.Menu MNUBEI
Caption = "背景设置[&B]"
End
Begin VB.Menu MNUUSER
Caption = "用户添加[&A]"
End
Begin VB.Menu MNUREP
Caption = "权限修改[&R]"
End
End
Begin VB.Menu MNU13
Caption = "-"
End
Begin VB.Menu mnuSep1
Caption = "退出系统[&X]"
End
End
Begin VB.Menu mnuBase
Caption = "【基本信息&B】"
Begin VB.Menu mnuBaseInput
Caption = "数据录入[&I]"
End
Begin VB.Menu MNU21
Caption = "-"
End
Begin VB.Menu mnuBaseQuery
Caption = "数据查询[&S]"
End
End
Begin VB.Menu mnuRelate
Caption = "【相关信息&A】"
Begin VB.Menu mnuRelateFamily
Caption = "家庭情况[&F]"
End
Begin VB.Menu mnu31
Caption = "-"
End
Begin VB.Menu mnuRelateHouse
Caption = "住房情况[&H]"
End
End
Begin VB.Menu mnuData
Caption = "【数据管理&D】 "
Begin VB.Menu mnuDataRenshi
Caption = "人事处数据校核[&R]"
End
Begin VB.Menu mnu41
Caption = "-"
End
Begin VB.Menu mnuDataCaiwu
Caption = "财务处数据校核[&C]"
End
End
Begin VB.Menu mnuHelp
Caption = "【帮助&H】"
Begin VB.Menu mnuHelpSoftware
Caption = "使用说明[&N]"
End
Begin VB.Menu mnu51
Caption = "-"
End
Begin VB.Menu mnuHelpVersion
Caption = "关于……"
End
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Word As Object
Dim pic As String
Private Sub Form_Load()
On Error Resume Next
Line2.X1 = 0
Line2.X2 = Screen.Width
Open App.Path + "\PIC.TXT" For Input As #1
Input #1, pic
Close #1
frmMain.Picture = LoadPicture(App.Path + "\246.jpg")
Frmflash.Timer1.Enabled = False
Unload Frmflash
'FlatBar1.SetToolBAar Toolbar1, 2
End Sub
Private Sub Form_Unload(Cancel As Integer)
'
End Sub
Private Sub mnuBaseInput_Click()
frmBaseInput.Show vbModal
End Sub
Private Sub mnuBaseQuery_Click()
frmBaseQuery.Show vbModal
End Sub
Private Sub MNUBEI_Click()
On Error Resume Next
Dim sFile As String
With CDlog1
'To Do
'设置 common dialog 控件的标志和属性
.Filter = "BMP图像格式(*.BMP)|*.BMP|JPG图像格式" & _
"(*.JPG)|*.JPG|wmf图像格式(*.wmf)|*.wmf|所有文件(*.*)|*.*"
' 指定缺省的过滤器
.FilterIndex = 2
.ShowOpen
If Len(.FileName) = 0 Then
Exit Sub
End If
sFile = .FileName
End With
frmMain.Picture = LoadPicture(sFile)
Open App.Path + "\PIC.TXT" For Output As #1
Write #1, sFile
Close #1
MNUCANCEL.Checked = False
End Sub
Private Sub MNUCOMPEL_Click()
On Error GoTo ERR
Dim sFile As String
With CDlog1
'To Do
'设置 common dialog 控件的标志和属性
.Filter = "多媒体演示格式(*.cpl)|*.cpl"
' 指定缺省的过滤器
.FilterIndex = 1
.ShowOpen
If Len(.FileName) = 0 Then
Exit Sub
End If
sFile = .FileName
End With
Shell App.Path + "\compel\compel " + sFile, vbNormalFocus ' , vbMaximizedFocus
Exit Sub
ERR:
MsgBox ERR.Description, vbCritical, "出错提示"
End Sub
Private Sub mnuHelpSoftware_Click()
Dim TT As String
Dim x
TT = App.Path & "\NOTE.TXT"
x = Shell("Notepad " + TT, 1)
End Sub
Private Sub mnuHelpVersion_Click()
Frmhelp.Show 1
End Sub
Private Sub MNUOPEN_Click()
Dim sFile As String
With CDlog1
'To Do
'设置 common dialog 控件的标志和属性
.Filter = "文本文件(*.txt)|*.txt|Word文档" & _
"(*.doc)|*.doc|Excel文档(*.xls)|*.xls"
' 指定缺省的过滤器
.FilterIndex = 2
.ShowOpen
If Len(.FileName) = 0 Then
Exit Sub
End If
sFile = .FileName
End With
'文本文档
If Right(Trim(sFile), 3) = "txt" Then
Dim x
x = Shell("Notepad " + sFile, 1)
End If
'Word文档
If Right(Trim(sFile), 3) = "doc" Then
Set Word = CreateObject("Word.BASIC")
With Word
.FILEOPEN sFile
.APPSHOW
End With
Set Word = Nothing
End If
'EXCEL文档
If Right(Trim(sFile), 3) = "xls" Then
Dim Excel As Object
Dim WorkSheet As Object
Dim WorkBook As Object
Set Excel = CreateObject("Excel.application")
Excel.Workbooks.Open sFile
Set WorkBook = Excel.ActiveWorkbook
Set WorkSheet = Excel.ActiveSheet
Excel.Visible = True
WorkBook.Saved = True
Set WorkSheet = Nothing
Set WorkBook = Nothing
Set Excel = Nothing
End If
End Sub
Private Sub mnuRelateFamily_Click()
frmQuFamily.Show vbModal
End Sub
Private Sub mnuRelateHouse_Click()
frmQuZhuF.Show vbModal
End Sub
Private Sub mnuRelateHouseOld_Click()
frmGoQZF.Show vbModal
End Sub
Private Sub MNUREP_Click()
frmSystemUserModify.Show 1
End Sub
Private Sub mnuSep1_Click()
If MsgBox("确信要退出系统?", vbQuestion + vbYesNo, "退出前提示") = vbNo Then
Exit Sub
Else
Unload Me
End If
End Sub
Private Sub MNUUSER_Click()
frmSystemNewUser.Show 1
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As ComctlLib.Button)
Select Case Button.Index
Case 1
If MsgBox("确信要退出系统?", vbQuestion + vbYesNo, "退出前提示") = vbNo Then
Exit Sub
Else
Unload Me
End If
'Unload Me
Case 3
Shell sBuffer & "calc.exe", 1
Case 4
Shell sBuffer & "cdplayer.exe", 1
Case 5
Shell sBuffer & "notepad.exe", 1
Case 6
Shell sBuffer & "Write.exe", 1
Case 7
Shell sBuffer & "Pbrush.exe", 1
Case 8
Shell sBuffer & "Explorer.exe", 1
Case 10
Call mnuHelpSoftware_Click
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -