Results 1 to 4 of 4

Thread: block popup in htmldocument

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2003
    Posts
    160

    block popup in htmldocument

    hi guys
    I'm loading a htmldocument on the fly but I want to block all popup if possible...

    thanks

    Code:
    Dim objMSHTML As New MSHTML.HTMLDocument
    Dim objDoc As HTMLDocument
    
    'load page
    Set objDoc = objMSHTML.createDocumentFromUrl(txtAddress, vbNullString)

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: block popup in htmldocument

    Are you using a Webbrowser control? You could use the NewWindow2 event to block pop-ups...
    Last edited by dee-u; Aug 10th, 2005 at 08:41 PM.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: block popup in htmldocument

    Just block everything for 1/2 second or so.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Sep 2003
    Posts
    160

    Re: block popup in htmldocument

    no I'm not using control, it is loading on the fly using createDocumentFromUrl

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