请问怎样使用 FileListBox 来保存文件?
来源:百度知道 编辑:UC知道 时间:2024/05/16 07:41:46
俺会用这个控件来打开文件,可是怎么保存文件呢?各位老兄帮一下啊?!
我写在File1的双击事件里了
添加一个Microsft Common Dialog 6.0 控件
Private Sub File1_DblClick()
On Error Resume Next
If File1.Name <> "" Then
CommonDialog1.FileName = File1.FileName
CommonDialog1.ShowSave
If CommonDialog1.FileName <> "" Then
FileCopy File1.Path + File1.FileName, CommonDialog1.FileName
End If
End If
End Sub
Private Sub Form_Load()
File1.Path = "c:\"
End Sub
你用的是什么方式打开的文件?