Search code examples
vb.netwindowswindows-8textboxwebbrowser-control

Set web browser URL to textbox contents


I am making a project that is a Windows 8 app.

I would like to set the url of the web browser element to the contents of the Textbox.

Here is my code although at present it does not work!

    Private Sub Button_Click_1(sender As Object, e As RoutedEventArgs)
        Webbrowser.Navigate(New Uri(TextBox.Text))

    End Sub

This works for my Windows Forms project but not for my W8 project!

Edit

Image demonstrates issue I am having

Image demonstrates error I am getting


Solution

  • Text Box was not named! Watching this video meant I discovered my error! Video Avalible Here