0

OK so I have a form with Navigation Buttons that open various webpages in browsers in a tab control. In order to clean up my code I would like to write a class for both the Buttons and the browsers. I have ZERO Idea as to where to start. Here is what I have now for each Buttom.

Try
            Dim tabDynamics As New TabPage
            Dim brwsDynamics As New WebBrowser
            brwsDynamics.Dock = DockStyle.Fill
            tabDynamics.Text = "Dynamics"
            tabDynamics.Controls.Add(brwsDynamics)
            Me.tabBrowsers.TabPages.Add(tabDynamics)
            Me.tabBrowsers.SelectedTab = tabDynamics
            brwsDynamics.Navigate("http://ihd.ftr.com/")
        Catch ex As Exception
        End Try
2
Contributors
3
Replies
17
Views
6 Months
Discussion Span
Last Post by rproffitt
0

I have gone through many tutorials and I am stiil getting the same error

0

Topic! Your topic is one thing so if you have a new topic about an error, then post about that along with enough code for folk to figure it out.

Also, if you post 100+ lines, sure but tell us the error and line number. This thread's topic is not about your code and error, just what you asked.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.