| | |
Web Browser control with Tabcontrol
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
I've created a web browser (similar to the beginners project) with the following items: And yes, I understand that it is doing exactly what it's supposed to, I just can't figure out how to tell program that when the tabpage2 is active, to navigate that page (and not tabpage1)
- 1 Text Box (for url entry, with "enter" support)
- 4 Nav buttons (Forward, Back, Go, Home)
- 1 Tabcontrol holding 2 tabbed pages
•
•
•
•
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Navigate(TextBox1.Text)
End Sub
VB.NET Syntax (Toggle Plain Text)
Public Class Form1 Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click WebBrowser1.Navigate(TextBox1.Text) End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click WebBrowser1.GoBack() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click WebBrowser1.GoForward() End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click WebBrowser1.Navigate("http://google.com") End Sub Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown If e.KeyCode = Keys.Enter Then WebBrowser1.Navigate(TextBox1.Text) End If End Sub Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted TextBox1.Text = WebBrowser1.Url.ToString End Sub End Class
Last edited by ChadW; Nov 28th, 2006 at 1:42 pm.
Insert generic signature here
>> Typo's are one thing. Completely failing to grasp the concept of proper spelling and grammar, is just plain dumb.
English is not the native language of many posters, so I rarly, if ever, criticize anyone for their use of English unless they use abbreviations such as y for you.
Sorry about not answering your question -- I don't know.
English is not the native language of many posters, so I rarly, if ever, criticize anyone for their use of English unless they use abbreviations such as y for you.
Sorry about not answering your question -- I don't know.
•
•
Join Date: Feb 2008
Posts: 12
Reputation:
Solved Threads: 0
![]() |
Similar Threads
- developing a plugin in c++ on linux platformfor a web browser eg. konqueror/ mozilla (C++)
- Pictures not showing up in any web browser!!! (Web Browsers)
- help!..VerySimple web browser(display source code of web pages) (JSP)
- Custom Web Server Control That Validate Itself (ASP.NET)
- Pc web browser hijacker (Viruses, Spyware and other Nasties)
- Running X apps within a web browser (Darwin, X11 and BSD)
- Setting a Home-Made Browser as Default (Visual Basic 4 / 5 / 6)
- The best Web Browser Ever (Mac Software)
Other Threads in the VB.NET Forum
- Previous Thread: I dont want objreader to read spaces
- Next Thread: vb.net2003 paralle port
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2005 2008 access account arithmetic array basic binary bing button buttons center check code component connectionstring crystalreport data database databasesearch datagrid datagridview date design dissertation dissertations dissertationthesis dropdownlist excel fade file-dialog folder ftp generatetags hardcopy image images input insert intel internet login math mobile monitor ms navigate net networking objects opacity output passingparameters peertopeervideostreaming picturebox picturebox1 port problem problemwithinstallation project reports" savedialog searchvb.net select serial shutdown soap string survey tcp temperature text textbox timer toolbox trim update updown user usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf






