Problem with WebBrowser1

Well, not so much a problem, just something I don't

know how to do, if it's possible.

I made, wrote, what ever ya call it, a Web browser.

It works fine, but on some site when ya click a link or button

it opens in a new window, thats when Internet Explorer kicks in.

Is it posible to how those open in WebBrowser1 and not have

Internet Explorer kick in at all

also, how do I add an Add to Favourites to the Browser

And if posible, How would do I add an option, if posible, to be

able to set the Browser as the Default browser

Am still learning program and still got a long way to go.

am using visual Basic 2005 Express Edition.

Thanx for ya help, very much apreciated.



Answer this question

Problem with WebBrowser1

  • nadasurf2

    God I wish you'd shutup.



  • Learning VB

    Hello ReneeC

    Thank you.

    Yes I am interested in the dll.

    Only thing is though, and I hope you don't mind, I could very well depend

    on a quite a bit of help from you because i'm still learning and av not been learing

    very long, am still a baby were programing is concerned.

    dll is something av not done before and know nothing about.

    am confused just looking at this bit:

    Protected Friend WithEvents wb As New ExtendedWebBrowser2.ExtendedWebBrowser

    I hope you don't mind, and thank you very much indeed.


  • Landon Parks

    Chris......

    I think I have the problem fixed and a VB solution for it.

    I took the codeproject version of this in c# and converted it into a pure C# control. The output of this project is a DLL with some slightly different events. The events of this control are slightly different with different event args, instead of using The NewWIndow event, there is an OnstartNewWindow, the modified event arguments have the URLs that I need to navigate with and it also has new windows cancellation.

    If you interested in this dll project please let me know.

    You have to declare the webbrowser dynamically like this:

    Protected Friend WithEvents wb As New ExtendedWebBrowser2.ExtendedWebBrowser

    Once you have done that you can create the new control as a fully functional Webrowser with some enhancements.



  • xplosiv_1

    narasiman

    No chris,

    I was referring to the above poster who rifled through about ten webbrowser posts today and said nothing about them.

    Let's see if we can't do things a step at a time. I think I can identitfy a standard site for the dll. Then well get you set on in a simple test program with the dll....



  • Alain DePreter

    Hello ReneeC

    Thanx, al make a start on that.

    Thank you.


  • Brett Burkhart

    Sorry ReneeC.

    Have i upset you or something


  • Mathieu Cupryk

    if my post made upset than i am sorry

  • Pontius

    Hello ReneeC.

    I got the dll.

    I did what you told me but and geting quite a few errors with this code:

    Protected Friend WithEvents wb As New ExtendedWebBrowser2.ExtendedWebBrowser

    Public sub Load(mumble,mumble) handles me.load

    me.controls.add(wb)

    wb.navigate(www.microsoft.com <javascript:ol('http://www.microsoft.com');>)

    end sub

    I'm using Visual Basic 2005 Express Edition.

    thanx ReneeT


  • jori0001

    we have lot example in lot source web site such as www.planetsource.com and www.codeproject.com and even we can seefor tabbed web browser

  • LpAngelRob

    Oh boy I'm fighting that now. It's a serious problem with the design of the webbrowser control.

    The discussion is rather complex and I still haven't found a good solution although I've found good discussions. The best is here. The problem is with The New WIndow event.

    You can completely inbit the new window with e.cancel. The discussion I'm thinking of is here it's quite complex. I've gotten this to work in a simple test model but it's not working in my application where there are java commands for flash.

    The reference is here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=706113&SiteID=1



  • MattHei

  • gb05

    can anybody how to build a tabbed web browser



  • robinjam

    Chris the my normal file upload/download site seems to be dead, so I sent you the dll in email. It's vs2005 dll built on vista but it should work.

    Start a new test project. Put a copy of the dll in the project root and add it to the project as an existing item

    Also add it as a reference (Add Reference)

     

    Protected Friend WithEvents wb As New ExtendedWebBrowser2.ExtendedWebBrowser

    Public sub Load(mumble,mumble) handles me.load

        me.controls.add(wb)

       wb.navigate("www.microsoft.com")

    end sub

     

    and see if that works......

     

     

     



  • Horst Klein

    Thanx ReneeC.

    I took a look and, wow, to complicated for me, way above my head, don't understand

    any of it.

    I think e.cancel is the easy way.

    I wonder how FireFox does it.

    Thanx again ReneeC,

    Much apreciated.


  • Problem with WebBrowser1