Results 1 to 6 of 6

Thread: [RESOLVED] Url Redirection Help

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2009
    Posts
    968

    Resolved [RESOLVED] Url Redirection Help

    !!!!!!!!!!!!!!!!!!! SOLVED !!!!!!!!!!!!!!!!!!!!!!!!


    Hi guys ,

    Im trying to set my homepage on my browser , i know i can do it in properties but that seens to revert back to the hompage that im using on IE.

    Heres my home button click
    Code:
    Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
            CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).GoHome()
        End Sub
    What code do i need to add to redirect it to a certain webpage?
    Last edited by dunlop03; Aug 25th, 2009 at 11:30 PM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Url Redirection Help

    WebBrowser.Navigate
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2009
    Posts
    968

    Re: Url Redirection Help

    where do i put that ?

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Url Redirection Help

    I understand that you're new to VB but just try applying some logic to the situation. You're currently calling WebBrowser.GoHome and you've said yourself that it doesn't work. I've suggested that WebBrowser.Navigate would work, so where do you suppose it might go?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2009
    Posts
    968

    Re: Url Redirection Help

    No , i havnt said it doesnt work , it is currently working with the code ive posted above, but by using the code above i am setting my homepage via Internet Explorer

    What i want, is to set my home page via a url , but im not sure how to implement that within the code above.

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2009
    Posts
    968

    Re: Url Redirection Help

    i got it m8 with ur help also thanks very much , here is what i did :

    Code:
    Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
            CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate("http://www.yahoo.com")
        End Sub
    Thanks again

    !! SOLVED !!

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