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

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.