|
-
Aug 25th, 2009, 10:29 PM
#1
Thread Starter
Fanatic Member
[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.
-
Aug 25th, 2009, 10:40 PM
#2
-
Aug 25th, 2009, 10:43 PM
#3
Thread Starter
Fanatic Member
-
Aug 25th, 2009, 11:10 PM
#4
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?
-
Aug 25th, 2009, 11:17 PM
#5
Thread Starter
Fanatic Member
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.
-
Aug 25th, 2009, 11:30 PM
#6
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|