Results 1 to 9 of 9

Thread: Novice Need Help : WebBrowser

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2009
    Posts
    4

    Exclamation Novice Need Help : WebBrowser

    Ok, This is probably a simple Q & A but . . . I have a appication that is mainly compriesed of WebBrowsers. Would it be possible to have one of my WebBrowsers on a seperate window change the url of another webbrowser in a diffrent window?

    Basiclly is there a way javascript or something else to change the target of a link on my website to target a open window's webbrowser in the application??

    Thank you

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Novice Need Help : WebBrowser

    Hey,

    Welcome to the Forums!

    I think you are going to need to provide some more information before anyone here is going to be able to help you.

    For instance, what technology have you used to create this application? Is it .Net?

    Gary

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2009
    Posts
    4

    Lightbulb Re: Novice Need Help : WebBrowser

    Sorry I thought these forums were software specific. . . I'm using Visual Basic 2008 Express.

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Novice Need Help : WebBrowser

    Hey,

    No, these forums cover lots of different techonologies, from VB6 through to .Net 2008, as well as C#, ASP.Net, HTML and lots of others.

    Anyway, getting back to your problem...

    Are you talking about communicating between different instances of your application, or simply different web browsers within the same application?

    Gary

    P.S. I am going to ask a Moderator to move your thread as I don't think this question belongs in the Application Deployment Forum, but rather in the VB.Net Forum.

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2009
    Posts
    4

    Re: Novice Need Help : WebBrowser

    Ok.

    I guess between deiffrent instances of my application. Basically:

    when my app starts it launches three windows. Each window has a webBrowser in it all diffrent names. I want to know if a link in window one - webbroswer1 can change the location/URL of window2s webbroswer2.

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Novice Need Help : WebBrowser

    Thread moved from the 'Application Deployment' forum (which is for questions about installing/distributing your software) to the VB.Net (VB2002 and later) forum


    Quote Originally Posted by gep13
    P.S. I am going to ask a Moderator to move your thread
    Thanks for letting us know

  7. #7
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Novice Need Help : WebBrowser

    Hey,

    Ok, let's try and get some terminology sorted out.

    Am I right in saying that you have one application, that when it loads, opens up three separate forms, each of which have a web browser on them?

    If this is the case, them it is simply a matter of communication between forms.

    If this isn't the case, and you are trying to communicate across three different instances of the same application, then that is a different story.

    Gary

  8. #8

    Thread Starter
    New Member
    Join Date
    Sep 2009
    Posts
    4

    Re: Novice Need Help : WebBrowser

    Correct. I have one application, three forms, three web browsers. However i want the url page of the first broswer to be able to change the url page of a second broswer.

  9. #9
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Novice Need Help : WebBrowser

    Hey,

    How are you creating your forms? Can you show some code, this will help determine the best course of action.

    Basically, what needs to happen is that on the form with the webbrowser in it, you need to get a reference to the other form, and from there, you can set properties and call methods on items within it. The tricky part is sometimes getting the reference, and for that, we need to see how you are creating the forms.

    There are a number of entries in the Code Bank that deal with the type of issue that you are having, so it might be good for you to have a look at those, and then attempt to do the same thing in your code. Here are some links:

    http://www.vbforums.com/showthread.php?t=466253
    http://www.vbforums.com/showthread.php?t=413744
    http://www.vbforums.com/showthread.php?t=313050

    Have a read through those, and then post back if you have any more questions.

    Hope that helps!!

    Gary

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