Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer avg backup black screen boot bsod computer connection crash css dell display drive driver drivers email error ethernet excel firefox firefox 3 hard drive internet internet explorer itunes laptop linux malware monitor network networking outlook outlook 2003 outlook 2007 outlook express partition problem router slow software sound spyware trojan usb video virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
SaveFileDialog with c#


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
kobycool's Avatar
Junior Member with 7 posts.
 
Join Date: Jun 2004
Experience: Computer Illiterate
30-Jun-2004, 09:30 AM #1
SaveFileDialog with c#
hello,
i have a form with many parameters. among others i have a menu item "File" that contain 'open...' and 'Save...'
when i choose the 'Save...' option i want to save all my operation so far(it`s mean that if i change any parameter or any control). and when i do open to this file i want to see all !! my changes.
///////////////////////////////
for exampl: in my form i have a TextBox, suppose i write anything in the text box and i save it, now i`m close all, init my program again and use 'open' option - now, i want to see my changes in the text box.
///////////////////////////////

my 'SaveFileDialog' function look like this:

this.saveFileDialog = new SaveFileDialog();
this.saveFileDialog.DefaultExt = "mddb";
this.saveFileDialog.Filter = "MDDB files (*.mddb)|*.mddb|All files (*.*)|*.*" ;
this.saveFileDialog.FilterIndex = 2 ;
this.saveFileDialog.RestoreDirectory = true ;

if(saveFileDialog.ShowDialog() == DialogResult.OK)
{
if((myStream = saveFileDialog.OpenFile()) != null)
{
????
myStream.Close();
}
}

? - means mabye there my problem

or whether at all should i use the Serialize(how can use it?) ?

thank you in advanced
koby
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:30 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.