Results 1 to 26 of 26

Thread: (REOPENED) Changing WebBrowser control contents before 1st render

Threaded View

  1. #1

    Thread Starter
    Addicted Member finn0013's Avatar
    Join Date
    Jan 2001
    Charleston, SC

    Question (REOPENED) Changing WebBrowser control contents before 1st render

    *** UPDATE ***
    This problem is with the WebBrowser component. The code posted below is what I am trying to insert into the control before it renders the page for the first time.
    *** UPDATE ***

    This question actually stems from this post:

    I am developing the application in C#, however the problem is not really language specific.

    When I have a page that has a javascript call to:
    I am wanting to override the print method so that pages do not pop up the print dialog. I can do so by inserting this into the top of the html:
    window.print=function emptyMethod() {};
    I now just need to figure out how to get this code into the document html before the browser control renders it for the first time. I have tried a number of things (for a complete list, see the post listed above), all with no success. I find it hard to believe that there is no way to do it - I just haven't been able to figure it out so far...
    Last edited by finn0013; Aug 16th, 2006 at 11:05 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