Post by knowledge on Nov 15, 2016 3:53:41 GMT 10
Hey guys, i was using basic tab control which it has easy controls, but i switched to SuperTabControl, it is really cool. But im having trouble with this code:
Public Sub AddTab() Dim tab As New SuperTabItem Dim tabcntrl As New BrowserTab(Me, TabControl1, tab) tabcntrl.Dock = DockStyle.Fill tab.Controls.Add(tabcntrl) TabControl1.TabPages.Add(tab) TabControl1.SelectedTab = tab End Sub
Public Sub AddTab(url As String) Dim tab As New TabPage Dim tabcntrl As New BrowserTab(Me, TabControl1, tab, url) tabcntrl.Dock = DockStyle.Fill tab.Controls.Add(tabcntrl) TabControl1.TabPages.Add(tab) TabControl1.SelectedTab = tab End Sub
|
|
Post by bobowk on Nov 15, 2016 7:24:59 GMT 10
In my past experience, SuperTabControl was (and still is) not the best tabs for browsers. It had limitation and none of those little boxes next to tabs to open a new tab when you click on it. Personally, I think using a tabcontrol called TWBP Tabs, which were built for webbrowsers. You can download it here with source + demo (Provided by zealot): www.mediafire.com/download/8n28cmeipsm8qnj/TWBP+Tabcontrol.zipInside the included file you have the .dll and a demo with source to help you get started. You can also use these codes (I had trouble with them so i will help you out): Change Tab Text: tabs.TabContainer.getSelectedTab.TabTitle = "My Text" Which can be used in something like this: Web_Address Changed You can also use this code to add a tab: tabs.TabContainer.AddTab(New home, True, tabs.TabContainer.TabCount) So yeah, Use TWBP Tabs or make your own.
|
|
Post by knowledge on Nov 16, 2016 1:55:39 GMT 10
Nvm, i created my own. thanks Sorry some edit: I will use TWBP tabs since the TWBP rocks and mine sucks
Last Edit: Nov 16, 2016 3:29:31 GMT 10 by knowledge
|
|