📄 form1.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{0ECD9B60-23AA-11D0-B351-00A0C9055D8E}#6.0#0"; "MSHFLXGD.OCX"
Begin VB.Form 客房设置FORM
BorderStyle = 1 'Fixed Single
Caption = "客房设置"
ClientHeight = 7125
ClientLeft = 45
ClientTop = 330
ClientWidth = 10935
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 7125
ScaleWidth = 10935
Begin VB.CommandButton Command4
BackColor = &H00FFFFC0&
Caption = "关闭"
Height = 300
Left = 9840
Style = 1 'Graphical
TabIndex = 5
Top = 6090
Width = 915
End
Begin VB.CommandButton Command3
Caption = "删除"
Height = 300
Left = 9825
Style = 1 'Graphical
TabIndex = 4
Top = 2820
Width = 915
End
Begin VB.CommandButton Command2
Caption = "修改"
Height = 300
Left = 9840
Style = 1 'Graphical
TabIndex = 3
Top = 2190
Width = 915
End
Begin VB.CommandButton Command1
Caption = "增加"
Height = 300
Left = 9840
Style = 1 'Graphical
TabIndex = 2
Top = 1740
Width = 915
End
Begin VB.PictureBox Picture1
Align = 1 'Align Top
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 915
Left = 0
ScaleHeight = 915
ScaleWidth = 10935
TabIndex = 1
Top = 0
Width = 10935
End
Begin MSHierarchicalFlexGridLib.MSHFlexGrid MSHFlexGrid1
Bindings = "Form1.frx":0000
Height = 5550
Left = 30
TabIndex = 0
Top = 975
Width = 9555
_ExtentX = 16854
_ExtentY = 9790
_Version = 393216
FixedCols = 0
_NumberOfBands = 1
_Band(0).Cols = 2
End
Begin MSAdodcLib.Adodc Adodc1
Height = 345
Left = 75
Top = 6600
Visible = 0 'False
Width = 1935
_ExtentX = 3413
_ExtentY = 609
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
End
Attribute VB_Name = "客房设置FORM"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command4_Click()
Unload Me
End Sub
Private Sub Form_Load()
Left = 0
Top = 0
If PIC_load Then
Me.Picture1.Picture = LoadPicture(App.Path & "\pic\pic0001.jpg")
End If
Adodc1.ConnectionString = My_PROVIDER
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from 客房"
Adodc1.Refresh
Set Me.MSHFlexGrid1.DataSource = Adodc1
Me.MSHFlexGrid1.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -