📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 1 'Fixed Single
Caption = "全面控制INI文件"
ClientHeight = 4536
ClientLeft = 5280
ClientTop = 2592
ClientWidth = 2436
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 4536
ScaleWidth = 2436
Begin VB.CommandButton cmdFunction
Caption = "退出程序"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.6
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 555
Index = 5
Left = 120
TabIndex = 5
Top = 3720
Width = 1875
End
Begin VB.Frame Frame1
Caption = "键的操作"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.6
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 3492
Left = 0
TabIndex = 6
Top = 0
Width = 2292
Begin VB.CommandButton cmdFunction
Caption = "获得键的数值"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.6
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 555
Index = 0
Left = 120
TabIndex = 0
Top = 360
Width = 1875
End
Begin VB.CommandButton cmdFunction
Caption = "添加到INI文件"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.6
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 555
Index = 1
Left = 120
TabIndex = 1
Top = 960
Width = 1875
End
Begin VB.CommandButton cmdFunction
Caption = "删除扇区"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.6
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 555
Index = 2
Left = 120
TabIndex = 2
Top = 1560
Width = 1875
End
Begin VB.CommandButton cmdFunction
Caption = "删除键"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.6
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 555
Index = 3
Left = 120
TabIndex = 3
Top = 2160
Width = 1875
End
Begin VB.CommandButton cmdFunction
Caption = "删除键的数值"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.6
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 555
Index = 4
Left = 120
TabIndex = 4
Top = 2760
Width = 1875
End
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdFunction_Click(Index As Integer)
FileName = App.Path & "\INIFile.ini"
Select Case Index
Case 0:
'GetKeyVal() - Has to Return
Flag = 0
Form2.Show
Case 1:
'AddToINI() *** AddToINI FileName, "New Section", "Key 1", "Key 1 Value"
Flag = 1
Form2.Show
Case 2:
Flag = 2
Form2.Show
Case 3:
Flag = 3
Form2.Show
'DeleteKey() *** DeleteKey FileName, "Section 3", "Key 5"
Case 4:
Flag = 4
Form2.Show
Case 5:
Unload Me
End Select
End Sub
Private Sub Form_Load()
Flag = -1
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -