-
Jan 1st, 2013, 08:23 PM
#1
Thread Starter
New Member
Type expected error!
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!
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
|