Hi everyone!
Im trying to make a webbrowser and I have a Type Expected error and it wont go away. What i want this code to do is go to the website, then set toolstriptextbox1.text into the value of webbrowser.url.
Here is my code:
Private Sub ToolStripButton4_Click(sender As System.Object, e As System.EventArgs) Handles ToolStripButton4.Click
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(ToolStripTextBox1.Text)
ToolStripTextBox1.Text = (CType (TabControl1.SelectedTab.Controls,(WebBrowser.URL)) 'It happens at the first bracket around Webbrowser.url'

(toolstripbutton4 is the 'go' button)
(also the webbrowser is in a tab with a add tab option)

Thanks!