0

I have two SuperTabItems in a SuperTabControl. I want to change from SuperTabItem1 to SuperTabItem2 clicking a button.

I'm using DotNetBar components. The function of a SuperTabControl is the same as a TabControl in the normal objects of Visual Basic. But it looks like the code doesn't work the same for these Tab objects.

I tryed this and many other types of lines, but nothing:

SuperTabControl1.Select(stAsignar)
Emily13
  • 11
  • 5
  • 1
    Have you tried setting the `SelectedTabIndex`? For example: `SuperTabControl1.SelectedTabIndex = TABINDEX` This information is found right in their documentation [**here**](http://www.devcomponents.com/kb2/?p=393) – Trevor Sep 16 '16 at 14:56
  • **I just tried but give me this error:** A value of type 'DevComponents.DotNetBar.SuperTabItem' can not be converted to 'Integer'. – Emily13 Sep 16 '16 at 15:21
  • Because it takes an index which is an integer data type, **not** a `TabItem`, did you read the link I gave you. You need to specify the index of the tab you want to select... Or create your own function pass the tabitem to it and search the tabs, once your tab is found return the index... – Trevor Sep 16 '16 at 15:23
  • I don't want indexes, I want to _show_ the tab. But some how your link brings me to use this: SuperTabControl1.SelectedTab = stAssign '< – Emily13 Sep 16 '16 at 15:55
  • So, I mean Thanks @Zaggler!! – Emily13 Sep 16 '16 at 15:56

0 Answers0