Re: save form in run time ??
mm no, you can't save a form, you can save data, then you have to load your Form and load that data into it. You can save/load from file, database, registry.. which will be?
Re: save form in run time ??
Re: save form in run time ??
Do you have a TextBox or a RichTextBox?
Re: save form in run time ??
Re: save form in run time ??
The easiest way would be to use a CommonDialog control (ToolBox, right click, Components... Microsoft Common Dialog Control). Then use this:
VB Code:
'to open
CommonDialog1.Filter = "Text files (*.txt)|*.txt"
CommonDialog1.ShowOpen
RichTextBox1.LoadFile CommonDialog1.FileName
'to save
CommonDialog1.Filter = "Text files (*.txt)|*.txt"
CommonDialog1.ShowSave
RichTextBox1.SaveFile CommonDialog1.FileName
Re: save form in run time ??
it didn't work after saveing i opend the file
it contains some words with no meaning
Re: save form in run time ??
Maybe the problem is that .TXT extension won't save all that formating, you should use .RTF extension for that.