点过删除以后就是这样
代码如下:
Private Sub Form_Load()
Drive1.Drive = "g:\"
Dir1.Path = "g:\" & "工作\" '默认文件路径
File1.Path = Dir1.Path
File1.Pattern = "*.dwg"
Text2.Text = File1.Path
End Sub
Private Sub Drive1_Change() '选择驱动器
Dir1.Path = Drive1.Drive
End Sub
Private Sub Dir1_Change() '选择文件夹
File1.Path = Dir1.Path
Text2.Text = File1.Path
End Sub
Private Sub Text1_Change()
File1.Pattern = "*" & "." & Text1.Text
End Sub
Private Sub Command1_Click() '删除文件
For i = o To File1.ListCount - 1
File1.ListIndex = i
Kill File1.Path & "\" & File1.FileName
Next i
File1.Refresh
End Sub
Private Sub Command2_Click()
End
End Sub
如有高手能够指点,不胜感激