Hi
i have created an application like a notepad now i want to save the contents typed in by the user into a file like a .txt or .doc file. when the user clicks on the save option of the menu.
Kanchan
Printable View
Hi
i have created an application like a notepad now i want to save the contents typed in by the user into a file like a .txt or .doc file. when the user clicks on the save option of the menu.
Kanchan
this is a forum with a LOT of information. So if you need to know something like this, you can always search the content.
Take a look at the 'topic areas' -> 'File/Directory'
and then 'handling files in vb'
hth.
You can do it by:
Open "filename.txt" for output as #1
print #1, [content line1]
if done printing(copy to the file) the lines
close #1
You can also take a look at the "microsoft common dialog control"
It has the common dialogs like "save", "open", "print" in it.
Succes,
Dennie