Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Need Help !

Need Help !

Scheduled Pinned Locked Moved C#
help
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jacobb Michael
    wrote on last edited by
    #1

    Hi Friends ! I need some help on Web Browser Control. If anybody has worked with this control pls share your ideas! waiting for your ping...(reply) thanks

    A N 2 Replies Last reply
    0
    • J Jacobb Michael

      Hi Friends ! I need some help on Web Browser Control. If anybody has worked with this control pls share your ideas! waiting for your ping...(reply) thanks

      A Offline
      A Offline
      Arun Jacob
      wrote on last edited by
      #2

      vats the pblm using webbrowser control?Have u tried that? Plz avoid using Need Help ! as subject line, instead specify your specific subject :|

      Arun Jacob http://codepronet.blogspot.com/

      J 1 Reply Last reply
      0
      • A Arun Jacob

        vats the pblm using webbrowser control?Have u tried that? Plz avoid using Need Help ! as subject line, instead specify your specific subject :|

        Arun Jacob http://codepronet.blogspot.com/

        J Offline
        J Offline
        Jacobb Michael
        wrote on last edited by
        #3

        i am using the code like bellow, but it does not work

        SHDocVw.InternetExplorer browser;
        browser.FileDownload += new DWebBrowserEvents2_FileDownloadEventHandler(browser_FileDownload);

        void browser_FileDownload(ref bool Cancel)
        {
        //throw new Exception("The method or operation is not implemented.");
        }

        while i download all the event is not fired. but other events like browser.DocumentComplete, browser.BeforeNavigate2 etc is fired properly do u have any suggestion

        A 1 Reply Last reply
        0
        • J Jacobb Michael

          Hi Friends ! I need some help on Web Browser Control. If anybody has worked with this control pls share your ideas! waiting for your ping...(reply) thanks

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Stop reposting. Your question below had a more appropriate title.


          only two letters away from being an asset

          J 1 Reply Last reply
          0
          • N Not Active

            Stop reposting. Your question below had a more appropriate title.


            only two letters away from being an asset

            J Offline
            J Offline
            Jacobb Michael
            wrote on last edited by
            #5

            thanks for the comment, i do so ! Try Different Do Best Jacob

            1 Reply Last reply
            0
            • J Jacobb Michael

              i am using the code like bellow, but it does not work

              SHDocVw.InternetExplorer browser;
              browser.FileDownload += new DWebBrowserEvents2_FileDownloadEventHandler(browser_FileDownload);

              void browser_FileDownload(ref bool Cancel)
              {
              //throw new Exception("The method or operation is not implemented.");
              }

              while i download all the event is not fired. but other events like browser.DocumentComplete, browser.BeforeNavigate2 etc is fired properly do u have any suggestion

              A Offline
              A Offline
              Arun Jacob
              wrote on last edited by
              #6

              jasome wrote:

              SHDocVw.InternetExplorer browser; browser.FileDownload += new DWebBrowserEvents2_FileDownloadEventHandler(browser_FileDownload);

              Is InternetExplorer the WebBrowser control?Which event having this line of code?Have you put a break point and check 2 see if this event is firing at any stage?

              Arun Jacob http://codepronet.blogspot.com/

              J 1 Reply Last reply
              0
              • A Arun Jacob

                jasome wrote:

                SHDocVw.InternetExplorer browser; browser.FileDownload += new DWebBrowserEvents2_FileDownloadEventHandler(browser_FileDownload);

                Is InternetExplorer the WebBrowser control?Which event having this line of code?Have you put a break point and check 2 see if this event is firing at any stage?

                Arun Jacob http://codepronet.blogspot.com/

                J Offline
                J Offline
                Jacobb Michael
                wrote on last edited by
                #7

                Well i just give the entire code block.

                private SHDocVw.InternetExplorer browser;
                private SHDocVw.ShellWindows shellWindows;
                private ArrayList Current_IE_Handles;

                #region Constructors
                public Form1()
                {
                InitializeComponent();
                Current_IE_Handles = new ArrayList();
                shellWindows = new SHDocVw.ShellWindowsClass();
                shellWindows.WindowRegistered += new SHDocVw.DShellWindowsEvents_WindowRegisteredEventHandler(shellWindows_WindowRegistered);
                shellWindows.WindowRevoked += new SHDocVw.DShellWindowsEvents_WindowRevokedEventHandler(shellWindows_WindowRevoked);
                }
                #endregion

                private void shellWindows_WindowRegistered(int z)
                {
                string filnam;

                        foreach (SHDocVw.InternetExplorer ie in shellWindows)
                        {
                            filnam = Path.GetFileNameWithoutExtension(ie.FullName).ToLower();
                
                            if (filnam.Equals("iexplore"))
                            {
                                browser = ie;
                
                                bool check = true;
                
                                for (int i = 0; i < Current\_IE\_Handles.Count; i++)
                                {
                                    if (Current\_IE\_Handles\[i\].ToString() == browser.HWND.ToString())
                                    {
                                        check = false;
                                    }
                                }
                
                                if (check == true)
                                {
                                    browser.DocumentComplete += new DWebBrowserEvents2\_DocumentCompleteEventHandler(browser\_DocumentComplete);
                                    browser.FileDownload += new DWebBrowserEvents2\_FileDownloadEventHandler(browser\_FileDownload);
                                }
                            }
                        }
                    }
                

                void browser_FileDownload(ref bool Cancel)
                {
                //throw new Exception("The method or operation is not implemented.");
                }

                After running this program when you open Internet Explorer(IE) the DOM object will be created. and when ever the changes happens in the IE(navigate,document completer,) event will be fired. using that i have traced all the visited urls,popups,print activity,etc but i dont get event fired for File Download thanks

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups