Results 1 to 2 of 2

Thread: Closing PopUps from WebBrowser

  1. #1

    Thread Starter
    Hyperactive Member PITBULLCJR's Avatar
    Join Date
    Nov 1999
    Location
    New York
    Posts
    408

    Closing PopUps from WebBrowser

    Everyonce in a very blue moon my weather program that I made gets a pop up. It checks the same site everytime and its very rare that I get a pop up but sometimes when it goes to weather.com and then gets the source code I get a pop up. Is there anyway of killing this stupid thing?
    Sincerely,
    Chris


    Email: [email protected]
    AIM: KnightsOfTheMoon
    WebPage: http://kom.wicre.com
    ----------------
    VB6 Professional
    Abit ST6-RAID
    1000 MHZ
    512 MB PC133 Ram
    Nvidia GeForce 2 Ultra 64 MB
    Maxtor 81.9 Gig
    Win 98 SE

  2. #2
    Matthew Gates
    Guest
    Try this:


    VB Code:
    1. Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
    2.     Cancel = True
    3. End Sub

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