Post by knowledge on Nov 26, 2016 0:05:14 GMT 10
Heya guys. Sorry for annoying ya .. i wanna know how to open it in a tab. I know the code which is: Main.Twbptabs1.tabcotainer.addtab(New settings, true, main.twbptabs1.tabcontainer.tabcount) The problem is they get mixed. For example in the browserform: main.twbptabs1. Bla bla .getselectedtab.tabtitle = web.title so they get mixed is there anyway to fix that?
|
|
Post by Nathan Lecompte on Nov 26, 2016 8:48:58 GMT 10
Well, I don't use TWBP much; but I'm guessing that the issue is that it tries to get the title of the browser contained in the tab, although the settings part is present (but no actual webview). I mean I guess you could always have add an "if" statement around the part where it checks for the title and detect whether the tab is a settings tab or not, OR you could just put the part where it checks for the title in a "try" statement so that it just skips over it and continues running if it can't get the title.
|
|
Post by bobowk on Nov 26, 2016 10:53:50 GMT 10
Because I use TWBP Tabs ALOT... Make a Windows form, preferably settings.vb Add your code and settings and then add this code to add a tab:
TwbpTabs1.TabContainer.AddTab(New settings, True, Main.TwbpTabs1.TabContainer.TabCount) In full detail: The New settings code means a New Settings.vb. The rest of the code is adding a tab. Change the Tab Text to Settings and you're done! Tab Text:
Main.TwbpTabs1.TabContainer.getSelectedTab.TabTitle = "Settings" If this worked press the green arrow and add [SOLVED] in your title.
|
|
Post by knowledge on Nov 26, 2016 15:25:07 GMT 10
Yes this is the code im using. It changes also..
|
|
Post by knowledge on Nov 26, 2016 15:48:17 GMT 10
And about the if statment i will try it.
|
|
Post by knowledge on Nov 26, 2016 19:11:43 GMT 10
Thanks. It worked by using an If statment.
|
|
Post by bobowk on Nov 27, 2016 8:34:35 GMT 10
Put [SOLVED] in your title, it is required!
|
|