Class CreatenewTab : Inherits System.Windows.Forms.TabPage 'Some implementation here end Class
and I created a new instance of it here:
Dim n As New CreatenewTab() Form1.tabPage.TabPages.Add(n) 'tabPage is a tabControl present in Form1 n.getwebpage.Dock = DockStyle.Fill n.getwebpage.Parent = n n.getwebpage.Show() n.Text = n.getUrl n.Show() n.Select() n.Focus()
This is a sub that creates a new tab, now I have two questions:
-How can I add a close button in every new tab as the one available in VS tabs or Mozilla?
- How to make a new created tab to be selected and top? I have tried .show(), .Select() and .Focus() but nothing happens. What I mean is when you click on add new Tab, like in Browser a new tab is created and is selected for use(become top)