CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Dec 2006
    Posts
    21

    Question problems with saveFileDialog

    Hi all,

    Have a bit of a strange one here.

    On my form, I'm using a SaveFileDialog box

    private: System::Windows::Forms::SaveFileDialog^ saveFileDialog1;


    on initiate


    this.saveFileDialog1.DefaultExt = "xml";

    this.saveFileDialog1.Filter = "SCM files|*.xml";

    this.saveFileDialog1.InitialDirectory = "c:\";

    when my user calls a save menu option, I initiate the dialog as follows:


    saveFileDialog1.ShowDialog();

    String temp = saveFileDialog1.FileName;

    ....


    When I test the code, I get the following result:
    1. save file dialogue pops up perfectly
    2. if saving a new file name, all is well
    3. if REPLACING an existing file, all appears to hang.If the overwrite prompt
    is set to false then it will work.but it wont check wether the file exists or not

    Anyone have any ideas?
    Last edited by binilprasad; December 21st, 2006 at 07:26 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured