Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-20-2010, 03:45 PM   PM User | #1
Theofilaktos
New Coder

 
Join Date: Apr 2010
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Theofilaktos is an unknown quantity at this point
[VB.NET]Problem with WebBrowser.

Hello Guys, i started making a webbrowser based to internet explorer on visual basic.

I wanted to make the text where we input the URL to navigate to update with the current URL of the site. for example if im on google it will say http://google.com , it doesn't. how can i do this? can i do this with a timer?

If you have not understand clearly. What i want to do is make the textbox1's text to update according to the URL of the Browser.

im on youtube.com
then textbox1.text = youtube.com

But how to make this work?
I Tried this and it did not work

Code:
    Private Sub Timer1_Tick_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        TextBox1.Text = (WebBrowser1.Url.AbsoluteUri.ToString)
    End Sub
Then it stop debbuging and throw me to a screen like something's wrong with the script!!! Help me!
Theofilaktos is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:50 PM.


Advertisement
Log in to turn off these ads.