vb.net - How can I display the contents windows Form in a DotNetBar SuperTabControl tab page? -


i've been working dotnetbar objects , controls redesign web browser's ui , functionality in vb.net. (i've been using visual studio 2012 in case that's pertinent or helpful.) wanted use supertabcontrol tab control because allows placement of buttons inside tab bar new tab buttons found in major web browsers such google chrome, mozilla firefox, internet explorer , many others. went code button create new supertabitem , not difficult;

supertabcontrol1.tabs.add(new supertabitem) 

the problem have trying create new supertabitem contains same content windows form in project. i've been abel normal windows tabcontrol , dotnetbar tabcontrol supertabcontrol not render objects in supertabcontrolpanel. code i've been trying use;

dim t baseitem = supertabcontrol1.createtab("new tab")         dim panel supertabcontrolpanel = directcast(t.containercontrol, supertabcontrolpanel)         dim newtab new tab         newtab.show()         newtab.toplevel = false         newtab.dock = dockstyle.fill         panel.controls.add(newtab)         supertabcontrol1.tabs.add(t) 

this code displays no errors in code editor interrupt program when button clicked , stop debugging. appreciate towards fixing problem , getting new tab button function correctly.

try this

dim t supertabitem= supertabcontrol1.createtab("new tab") 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -