save

Best place to save user information xp and vista

I need to save a users login information in encrypted form for this application im building but im not sure of the best place to save the file. I dont want to save it into the program apps folder as i want it per user. So what is the best folder (or way) to save it into? Edit: Using c++ ...

Saving - Order of operations in .NET (C#)

I have a btnSave_Click() function in my code-behind. If a user clicks the save button (image) I created, it calls this function: protected void btnSave_Click(object sender, EventArgs e) { this.saveForm(); txtMessages.Text = "Save Complete"; } The saveForm() function obviously saves the form (through stored procedures). Will .NET wait ...

save applet from website

how can I save a java applet from a website so I can run it offline? ...

How to save an stringbuilder's content to text file using SaveFileDialog?

This is a winforms application. In windows, I want the user to click and button, and then a popup should make the user select the path of where they want to save the file. ...

Get access to ForeignKey objects at parent save in Django

Hi, I am trying to make a combined image of all images added to a modell in django with inline editing and a ForeignKey. Ive got these models (simplified): class Modell(models.Model): title = models.CharField('beskrivelse', max_length=200) slug = models.SlugField() is_public = models.BooleanField('publisert', default=True)...

NHibernate - how to save object with where clause

I don't know how to save object with where clause. I need it to prevent saving object with range of dates overlapping on others. public class TaskEvent { public DateTime StartDate {get;set;} public DateTime EndDate {get;set;} } I want to check overlaping in criteria within saving operation but I don't know how. Any ideas? ...

What's the way to implement Save / Load functionality?

I'm trying to implement a Load / Save function for a winforms applications. I've got following components : A Tree View Couple of List Views Couple of Textboxes Couple of objects (which holds a big dictionarylist) I want to implement a way to save all of this into a file, and resume/load it later on. What's the best way to do this?...

GUI design: Merge 'Save' and 'Save as', any ideas?

I am working on a GUI (OpenG Builder), and want to merge the Save and Save As button into one button. Does anyone have an idea how to perform such an act? My thoughts go to a 'hot spot' for 'save as' on the right side of the button, indicated by a glyph. Any other ideas or GUI screenshots implementing such a feature in an intuitive way...

Preferred method for persisting databound WPF ObservableCollection?

Hi all, I have a class that inherits from ObservableCollection(Of MyObject) and the MyObject class handles INotifyPropertyChanged as it should. When the user updates this data through bound controls the collection will change as expected. I have a 'Save' button on the form which is meant to persist this collection to disk as XML by cal...

Is it possible to open a PDF inside a c# application with Acrobat.dll?

I know that I can display a PDF file in my c# executable (not web app) with: private AxAcroPDFLib.AxAcroPDF axAcroPDF1; axAcroPDF1.LoadFile(@"somefile.pdf"); axAcroPDF1.Show(); But that is the regular pdf viewer like in the browser. I don't want that. I want full Adobe Standard or Professional functionality in my C# application usin...

How to save and load a text mode game

I went in late in a project of gamedev of a simple text game in C++.I studied the project and I think I know how to do everything but i get stuck on a thing:how to save and load the game as proposed.I don't want to have the thing done for me,only you show me a way to do it. ...

Why does Visual Studio 2008 want to save my project file repeatedly?

I have a semi-large solution file in Visual Studio 2008, with around 25-30 projects in it. I notice that a lot of times when I want to either close the solution file, or check in pending changes to TFS, VS will ask me if I want to save a particular project. If I cancel the operation, hit Save All, then retry, it will ask me again. If ...

Filename is different to the filename that exists in DB even though a session is being used

Hello all, I save a file with part of the filename as the session_id using PHP, like this: $newFileName = 'upload_160687_'.session_id().'_160687_'.$originalFileName; I then save the filename as a string using PHP in the DB and it looks like this: upload_160687_l4eef6nqlekhbirv2pvmuf5660_160687_Apple_Microsoft_desktop1-1.jpg Howeve...

Save CoreData-entities in NSUserDefaults

Imagine an CoreData entity (e.g. named searchEngine). NSManagedObjectContext manages some "instances" of this entity. The end-user is going to be able to select his "standard searchEngine" with a NSPopupButton. The selected object of NSPopupButton should be binded to the NSUserDefaults. The problem: 1) @try{save} a) If yo...

NSManagedObjectID into NSData

I found this wonderful NSManagedObjectID. This would be very good for referencing an Entity/NSManagedObject/NSEntityDescription, right? Let's get an ID from an entity: NSEntityDescription *entity = [self newEntity]; NSManagedObjectID *objID = [entity objectID]; So... any idea how to get this objID into a string? Or better: NSData...

PHP Pass File Handle to user so that file downloads & saves to their machine

Hello all, I am downloading a file from another server. I wish to push this file to my users rather than saving it to my server. In other words, pass them the file handle so it just passes through my server and saves to their machine. How can I do this? I have this so far: $handle = fopen($_GET['fileURL'], 'r'); $filename = stream_ge...

Renaming File on another server as user downloads it

Hello all, I am allowing users to download a file from another server just by giving them the link. However, the files are always named "file.zip" when users try to download it. I was hoping I could use maybe JavaScript to rename the file for them to something more appropriate. How can I do this? Is this possible? Would appreciate a...

Load a BitmapSource and save using the same name in WPF -> IOException

When I try to save a BitmapSource that I loaded earlier, a System.IO.IOException is thrown stating another process is accessing that file and the filestream cannot be opened. If I only save whithout loading earlier, everything works fine. The loading code: BitmapImage image = new BitmapImage(); image.BeginInit(); image.UriSource = ur...

Crystal Reports 8.5 network file save

I have a user who suddenly started getting the following error:- “File Save Failed The document could not be saved in J:\XXXX\reports\xxxx.rpt. It has been saved in C:\DOCUME~1\username\LOCALS~1\Temp\crw25.tmp.” This started after the SQL server they use had an IP address update and when the laptop did an XP autoupdate. The updates wer...

Saving element position and size (JQuery ui resizable and draggable)

Hi, I'm new to jquery and even javascript. I'm trying to create a system where you can edit very simple, static page by logging in and just dragging and resizing divs. The system works to the point where you get to edit the site, but the problem is how to save the coordinates and sizes of the divs. The system doesn't use mysql, since t...