RE: how to capture saveFileDialog.OverwritePrompt Response?

Discussion in 'Microsoft VB .NET' started by Guest, Jan 12, 2007.

  1. Guest

    Guest Guest

    I think I figured this out. If you click on "Yes", then the SaveFileDialog
    control proceeds with Response.OK. I can write my File.Delete(file) code
    after that.

    If you click on "No" then the SaveFileDialog control does not proceed.


    "Rich" wrote:

    > Hello,
    >
    > The saveFileDialog control asks if I want to overwrite an existing file. If
    > I click on "yes" for this prompt, how do I capture this response?
    >
    > --Pseudo code:
    > If SaveFileDialog1.OverwritePrompt.Response = "Yes" then
    > File.Delete(SaveFileDialog1.FileName)
    > End If
    > ...
    >
    > How do I capture this response?
    >
    > Thanks,
    > Rich
     
    Guest, Jan 12, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. josh

    SaveFileDialog() and OpenFileDialog()

    josh, Nov 13, 2003, in forum: Microsoft VB .NET
    Replies:
    3
    Views:
    469
    Herfried K. Wagner [MVP]
    Nov 13, 2003
  2. Guest
    Replies:
    0
    Views:
    350
    Guest
    Jan 28, 2004
  3. Robert Schwortschik

    SaveFileDialog problem

    Robert Schwortschik, Feb 4, 2004, in forum: Microsoft VB .NET
    Replies:
    14
    Views:
    558
    Herfried K. Wagner [MVP]
    Feb 4, 2004
  4. Guest

    SaveFileDialog InitialDirectory Property

    Guest, Apr 12, 2004, in forum: Microsoft VB .NET
    Replies:
    0
    Views:
    461
    Guest
    Apr 12, 2004
  5. Guest

    OpenFile and SaveFileDialog

    Guest, Jun 11, 2004, in forum: Microsoft VB .NET
    Replies:
    1
    Views:
    284
    Herfried K. Wagner [MVP]
    Jun 11, 2004
  6. KC

    SaveFileDialog and CheckFileExist

    KC, Oct 5, 2004, in forum: Microsoft VB .NET
    Replies:
    1
    Views:
    802
    Herfried K. Wagner [MVP]
    Oct 5, 2004
  7. Matthew

    Force location of SaveFileDialog

    Matthew, Oct 12, 2004, in forum: Microsoft VB .NET
    Replies:
    0
    Views:
    225
    Matthew
    Oct 12, 2004
  8. Guest

    SaveFileDialog

    Guest, Mar 30, 2005, in forum: Microsoft VB .NET
    Replies:
    5
    Views:
    608
    Herfried K. Wagner [MVP]
    Mar 30, 2005
Loading...