📄 changepath.frm
字号:
VERSION 5.00
Begin VB.Form changepath
BackColor = &H00FF8080&
Caption = "路径修改"
ClientHeight = 3600
ClientLeft = 60
ClientTop = 345
ClientWidth = 4050
LinkTopic = "Form1"
MDIChild = -1 'True
Moveable = 0 'False
ScaleHeight = 3600
ScaleWidth = 4050
Begin VB.Frame Frame1
BackColor = &H00FF8080&
Caption = "路径修改"
Height = 3255
Left = 240
TabIndex = 0
Top = 120
Width = 3495
Begin VB.TextBox Text5
Height = 375
Left = 120
TabIndex = 8
Text = "Text5"
Top = 2280
Width = 3255
End
Begin VB.TextBox Text4
Height = 375
Left = 120
TabIndex = 7
Text = "Text4"
Top = 2280
Width = 3255
End
Begin VB.CommandButton Command1
BackColor = &H00FF8080&
Caption = "保存修改"
Height = 375
Left = 1080
TabIndex = 6
Top = 2760
Width = 1335
End
Begin VB.TextBox Text3
Height = 375
Left = 120
TabIndex = 5
Text = "Text3"
Top = 2280
Visible = 0 'False
Width = 3255
End
Begin VB.DirListBox Dir1
Height = 1560
Left = 120
TabIndex = 4
Top = 600
Width = 3255
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 120
TabIndex = 3
Top = 240
Width = 3255
End
Begin VB.TextBox Text2
Height = 375
Left = 120
TabIndex = 2
Text = "Text2"
Top = 2280
Visible = 0 'False
Width = 3255
End
Begin VB.TextBox Text1
Height = 375
Left = 120
TabIndex = 1
Text = "Text1"
Top = 2280
Visible = 0 'False
Width = 3255
End
End
End
Attribute VB_Name = "changepath"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
pathfrm.Text1.Text = Text1.Text
pathfrm.Text2.Text = Text2.Text
pathfrm.Text3.Text = Text3.Text
pathfrm.Text4.Text = Text4.Text
pathfrm.Text5.Text = Text5.Text
Me.Visible = False
Text1.Visible = False
Text2.Visible = False
Text3.Visible = False
Text4.Visible = False
Text5.Visible = False
End Sub
Private Sub Dir1_Change()
If Text1.Visible = True Then
Text1.Text = Dir1.Path
End If
If Text2.Visible = True Then
Text2.Text = Dir1.Path
End If
If Text3.Visible = True Then
Text3.Text = Dir1.Path
End If
If Text4.Visible = True Then
Text4.Text = Dir1.Path
End If
If Text5.Visible = True Then
Text5.Text = Dir1.Path
End If
End Sub
Private Sub Drive1_change()
Dir1.Path = Drive1
End Sub
Private Sub Form_Load()
askn.ApplySkin Me.hWnd
Me.Top = 3000
Me.Left = 5500
Me.Width = 4170
Me.Height = 4200
Text1.Text = pathfrm.Text1.Text
Text2.Text = pathfrm.Text2.Text
Text3.Text = pathfrm.Text3.Text
Text4.Text = pathfrm.Text4.Text
Text5.Text = pathfrm.Text5.Text
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -