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