Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Dynamically Create TabSeparators
posted

I've found how to dynamically create tabs for the WebTab tool at run time, but I can't seem to figure out how to create a TabSeparator. I like the visual appeal of having TabSeparators between my tabs, but having the static ones with separators and dynamic ones without is no good. Here's how I'm creating the tabs (MasterWebTab is the name of my WebTab control on the page):

Dim myUltraTabItem As New Tab("Maintenance")
myUltraTabItem.Key = "Maintenance"
MasterWebTab.Tabs.Add(myUltraTabItem)

 

Any thoughts on how to add a TabSeparator? Thanks.

Parents
  • 10880
    Verified Answer
    posted

    You would essentially do the same thing but instead create an instace of a TabSeperator.

    Dim uts As New TabSeparator()
    'set any properties on the seperator
    'add to the tabs collection

    Me.MasterWebTab.Tabs.Add(uts)

Reply Children
No Data