- Home
·
- Miscellaneous
·
- open and save files from a common dialog control in a text editor.
open and save files from a common dialog control in a text editor.
open and save files from a common dialog control in a text editor.
Rate open and save files from a common dialog control in a text editor.
(1(1 Vote))
'select Microsoft Common Dialog Controls 6.0
'also grab a Microsoft Richtextbox control.
'create a menu in the menu handler and insert the following code.
Private Sub mnuFileOpen_Click ()
'open files
On Error GoTo Report:
CommonDialog1.ShowOpen
RichtextBox1.Loadfile (CommonDialog1.FileName)
Report:
Msgbox Err.Description & Err.Source
End Sub
Private Sub mnuFileSave_Click ()
'save files
On Error GoTo Report:
CommonDialog1.ShowSave
RichtextBox1.Savefile (CommonDialog1.FileName)
Report:
Msgbox Err.Description & Err.Source
End Sub
open and save files from a common dialog control in a text editor. Comments
No comments yet — be the first to post one!
Post a Comment