📄 frmschname.frm
字号:
VERSION 5.00
Object = "{90F3D7B3-92E7-44BA-B444-6A8E2A3BC375}#1.0#0"; "ACTSKIN4.OCX"
Begin VB.Form Frmschname
BorderStyle = 3 'Fixed Dialog
Caption = "设置校名"
ClientHeight = 1560
ClientLeft = 45
ClientTop = 330
ClientWidth = 4290
Icon = "Frmschname.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1560
ScaleWidth = 4290
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command1
Caption = "确定"
Height = 495
Left = 3300
TabIndex = 2
Top = 960
Width = 855
End
Begin VB.TextBox Text1
Alignment = 2 'Center
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 315
Left = 150
TabIndex = 0
Text = "校名未设置"
Top = 510
Width = 3975
End
Begin ACTIVESKINLibCtl.Skin Skin1
Left = 2700
OleObjectBlob = "Frmschname.frx":030A
Top = -30
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel4
Height = 225
Index = 0
Left = 240
OleObjectBlob = "Frmschname.frx":4A7F9
TabIndex = 1
Top = 150
Width = 1785
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel4
Height = 285
Index = 1
Left = 480
OleObjectBlob = "Frmschname.frx":4A860
TabIndex = 3
Top = 1080
Width = 2415
End
End
Attribute VB_Name = "Frmschname"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
On Error Resume Next
Dim success As Long
'叁数一 Section Name
'叁数二 於.ini中的项目
'叁数三 项目的内容
'叁数四 .ini文件的名称
If Text1.Text = "" Then
MsgBox "校名不能为空", 64, "请输入完整"
Exit Sub
Else
success = WritePrivateProfileString("学校", "校名", Text1.Text, App.Path & "\SET.ini")
Unload Me
End If
End Sub
Private Sub Form_Load()
On Error Resume Next
Dim ret As Long
Dim buff As String
' Skin1.LoadSkin App.Path & "\SKIN\6.sk"
Skin1.ApplySkin Me.hwnd
buff = String(255, 0)
ret = GetPrivateProfileString("学校", "校名", Text1.Text, buff, 256, App.Path & "\SET.ini")
'若.ini MyApp中无text1,则采用叁数三的值
Text1.Text = buff
prevWndProc = GetWindowLong(Text1.hwnd, GWL_WNDPROC)
SetWindowLong Text1.hwnd, GWL_WNDPROC, AddressOf WndProc
End Sub
Private Sub Form_Unload(Cancel As Integer)
On Error Resume Next
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -