473,387 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Save

hi,

you can create a file with the savefiledialog. once you have done that and
edit the file in the text editior that i wrote you cannot save the file, you
can only create a new file or replace the old one.

how do i save it again?

--
Alvo von Cossel I of Germany
Nov 17 '05 #1
2 1838
From the sounds of it, your only method of saving involves using a
SaveFileDialog to specify where to save when you do so... one way to improve
on this might be to have a SaveFile function into which you pass only the
filename and path that you want to save to.

With this, you might want to have two save buttons/menus, ‘Save’ and ‘Save
As’. When a user selects the Save menu, if you have not saved before, it
stores the filename to a variable and calls the SaveFile function mentioned
above. Later, when the user uses Save again, it sees that the variable
containing the filename has a string in it, so it does not display the
SaveFileDialog, but instead simply saves the file.

‘Save As’ would work similar what I just mentioned, only it would always
prompt for a filename.

Brendan
"Alvo von Cossel I" wrote:
hi,

you can create a file with the savefiledialog. once you have done that and
edit the file in the text editior that i wrote you cannot save the file, you
can only create a new file or replace the old one.

how do i save it again?

--
Alvo von Cossel I of Germany

Nov 17 '05 #2
hi,

you seem to know your c#! i have created a save button and a save as button.
what do i write to get this savefile function?

thanks for being so helpful. my software would never be complete without
your help

--
Alvo von Cossel I of Germany
"Brendan Grant" wrote:
From the sounds of it, your only method of saving involves using a
SaveFileDialog to specify where to save when you do so... one way to improve
on this might be to have a SaveFile function into which you pass only the
filename and path that you want to save to.

With this, you might want to have two save buttons/menus, ‘Save’ and ‘Save
As’. When a user selects the Save menu, if you have not saved before, it
stores the filename to a variable and calls the SaveFile function mentioned
above. Later, when the user uses Save again, it sees that the variable
containing the filename has a string in it, so it does not display the
SaveFileDialog, but instead simply saves the file.

‘Save As’ would work similar what I just mentioned, only it would always
prompt for a filename.

Brendan
"Alvo von Cossel I" wrote:
hi,

you can create a file with the savefiledialog. once you have done that and
edit the file in the text editior that i wrote you cannot save the file, you
can only create a new file or replace the old one.

how do i save it again?

--
Alvo von Cossel I of Germany

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: F. Hall | last post by:
If I read a bitmap image from one file and save it to another the save operation is slow unless I draw on the image. In other words, Image inputImage = Image.FromFile( @"c:\temp\source.bmp" );...
4
by: WJA | last post by:
I'm probably missing something here but I can't understand the following. When 2 users try to save a record with the same primary key (a number field), the first record saves as expected, but the...
5
by: kevin | last post by:
Hi, Any help with this would be really appreciated! I'm trying to download a file from a remote server. The access permissions is okay but the problem I'm facing is that the file is getting...
10
by: GJP | last post by:
Hello. Ive been asked to make my own notepade for college assignment. All ig going well, but i cant get the save to work. I can get Save a (shows dialog box), i can get it to just save too,...
5
by: C Watson | last post by:
Hi, I'm wondering if anyone can help me with AJAX in ASP.NET 1.1. I have a very specific feature that I would like to use it for. I have a rather long form that the users use to enter data...
3
by: =?Utf-8?B?YXNkZg==?= | last post by:
Hello. I am making a web application with c# and am using this code: Response.ContentType = "application/x-excel"; Response.AddHeader("Content-Disposition", "attachment;filename=" +...
0
by: amrhi | last post by:
Hy Guys , Can anybody help me ? I try to make small web database in my unit. Some of fields have on change behaviour to get other data that automatically filled other text field. But when i try to...
12
by: =?Utf-8?B?RnJlZU5FYXN5?= | last post by:
Hello, the scenario: There's an ASPX page which shows some text and has three buttons at the bottom: Save, Print and Close. Print and close is done by javascript. But how can I save the page...
0
by: ppardi | last post by:
I'm developing an addin for Word 2007 and I need to determine whether a user saves a Word 2007 document in an older format (97-2003) after a save as is done. The scenario is that the user starts...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.