CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2010
    Posts
    27

    Question Supressing Dialogue Box In WebBrowser Control

    Hello,

    I am trying to suppress "SaveAs" dialogue box using following C# code :

    webBrowser1.Document.ExecCommand("SaveAs", false, @"C:\google.txt");

    But as you can see , this code doesn't suppress "SaveAs" dialogue box as per visibility set to "False" . I have searched MSDN site about this code. But this code will suppress dialogue box as per MSDN docs said. Can you please tell me how can I suppress this annoying dialogue box & save as web page directly to hard disk.

  2. #2
    Join Date
    Mar 2010
    Posts
    27

    Re: Supressing Dialogue Box In WebBrowser Control

    Has anybody know why "false" parameter not working here ? or is it wrong code provided by MSDN. If yes then what is alternative method to save webpage as text file without showing dialog box to user , so he can continue his work without interruption.

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