|
-
Aug 13th, 2006, 02:12 PM
#1
Thread Starter
Addicted Member
save form in run time ??
Hello
i need to know how can i save a form in run time
to explain why (the form contains a textbox with some words and user have to modify this text its similer to MSword formating)
i need to let the user save the form if he didn't finish his work and he want to continue later
how can i do this?
-
Aug 13th, 2006, 02:29 PM
#2
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?
-
Aug 13th, 2006, 02:35 PM
#3
Thread Starter
Addicted Member
Re: save form in run time ??
-
Aug 13th, 2006, 02:39 PM
#4
Re: save form in run time ??
Do you have a TextBox or a RichTextBox?
-
Aug 13th, 2006, 02:44 PM
#5
Thread Starter
Addicted Member
Re: save form in run time ??
-
Aug 13th, 2006, 02:49 PM
#6
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
-
Aug 13th, 2006, 03:05 PM
#7
Thread Starter
Addicted Member
Re: save form in run time ??
it didn't work after saveing i opend the file
it contains some words with no meaning
-
Aug 13th, 2006, 03:12 PM
#8
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|