📄 frmmaininfo.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form frmMainInfo
ClientHeight = 3765
ClientLeft = 60
ClientTop = 345
ClientWidth = 6870
Icon = "frmMainInfo.frx":0000
LinkTopic = "Form1"
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 3765
ScaleWidth = 6870
Begin MSComctlLib.ImageList imglstMain
Left = 6075
Top = 150
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 3
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMainInfo.frx":5F32
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMainInfo.frx":608E
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMainInfo.frx":662A
Key = ""
EndProperty
EndProperty
End
Begin MSComctlLib.ListView lstStatus
Height = 1635
Left = 0
TabIndex = 0
Top = 0
Width = 6810
_ExtentX = 12012
_ExtentY = 2884
View = 3
LabelEdit = 1
LabelWrap = 0 'False
HideSelection = -1 'True
PictureAlignment= 5
_Version = 393217
Icons = "imglstMain"
SmallIcons = "imglstMain"
ForeColor = 0
BackColor = 16777215
BorderStyle = 1
Appearance = 1
NumItems = 0
End
Begin MSFlexGridLib.MSFlexGrid grdUserFee
Height = 2175
Left = 0
TabIndex = 1
Top = 1590
Width = 6855
_ExtentX = 12091
_ExtentY = 3836
_Version = 393216
FixedCols = 0
BackColor = 9988690
ForeColor = 16777215
BackColorFixed = 6264916
ForeColorFixed = 0
GridColor = -2147483645
GridColorFixed = -2147483642
AllowBigSelection= 0 'False
HighLight = 2
GridLines = 2
AllowUserResizing= 1
MousePointer = 1
End
End
Attribute VB_Name = "frmMainInfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居收藏整理
'发布日期:2007/07/09
'描 述:CBB三表户外计量系统 Ver 5.2
'网 站:http://www.Mndsoft.com/ (VB6源码博客)
'网 站:http://www.VbDnet.com/ (VB.NET源码博客,主要基于.NET2005)
'e-mail :Mndsoft@163.com
'e-mail :Mndsoft@126.com
'OICQ :88382850
' 如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************
'MSFLEXGrid定义
Sub preGrdUserFee()
With frmMainInfo.grdUserFee
.FixedRows = 1
.FixedCols = 0
.FormatString = "^ 类型|^ 楼|^ 单元|^ 门牌|^ 用户号|^ 用户名|< 电话|> 余款|"
End With
End Sub
Sub preLstStatus()
With lstStatus
'ColumnHeaders属性返回一个ColumnHeaders对象集合的引用。
.ColumnHeaders.Clear
.ColumnHeaders.Add , , "操作", 9000
.ColumnHeaders.Add , , "时间", 2000
'列表中的对象不排序。
.Sorted = False
.View = lvwReport
End With
End Sub
Private Sub Form_Load()
'返回一个 Long 型数据,其值为指定的数组维可用的最大下标。
If UBound(curForm) > 0 Then
curForm(UBound(curForm)).Enabled = False
End If
'用于为动态数组变量重新分配存储空间。Preserve保存数组中原来的内容。
ReDim Preserve curForm(UBound(curForm) + 1)
Set curForm(UBound(curForm)) = Me
Me.Top = 0
Me.Height = frmMain.Height - frmMain.pnlBase.Height
Me.Width = frmMain.Width
'目的:在程序中制作背景
'修改日期:2000.8.3
'grdUserFee.Visible = False
'lstStatus.Visible = False
'imgBack.Stretch = True
preGrdUserFee
preLstStatus
End Sub
Private Sub Form_Resize()
'修改日期:2000.8.8
'imgBack.Move 0, 0, ScaleWidth, ScaleHeight
lstStatus.Width = Me.Width - 10
lstStatus.Height = Me.Height * 2 / 3
grdUserFee.Width = Me.Width - 10
grdUserFee.Top = lstStatus.Top + lstStatus.Height
grdUserFee.Height = IIf((Me.Height - lstStatus.Height) > 0, Me.Height - lstStatus.Height, 1)
End Sub
Private Sub Form_Unload(Cancel As Integer)
ReDim Preserve curForm(UBound(curForm) - 1)
If UBound(curForm) > 0 Then
curForm(UBound(curForm)).Enabled = True
End If
frmMain.tlbMain.Buttons.Item(8).Value = tbrUnpressed
BrowInfo = False
End Sub
Private Sub grdUserFee_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
'VBRightButton
If Button = 2 And grdUserFee.Rows > 1 Then
If grdUserFee.Row > 0 Then
PopupMenu frmMain.mnuHot2
End If
End If
End Sub
Private Sub lstStatus_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
PopupMenu frmMain.mnuHot1
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -