How do you change the active tab when you click a button. I am using the WinTab in a wizard type application and I would like to change the tab without clicking on the current tab.
Is there any reason why setting the SelectedTab would not change the selected tab? I am currently working on a very large project and I notice sometimes it works just fine and other times the selected tab does not change. When I step through the code I am see it setting the SelectedTab property to the desired tab, but the event never fires and if you look at the UltraTabControl the selected tab is still the previous tab.
Any help would be apprciated.
Thanks,
Don
SelectedTab
Dim tabs As UltraTabsCollection = Me.ultraTabControl1.Tabs
' Select the 'options' tab by setting the SelectedTab ' property. This will raise the ActiveTabChanging, ' ActiveTabChanged, SelectedTabChanging and ' SelectedTabChanged events. It will also cause ' the 'options' tab TabPage to be made visible and ' the tab to scroll into view. Me.ultraTabControl1.SelectedTab = tabs("options") ' or tabs (2) if your tab doesn't have a key
Hi, can you provide a code example? I am trying to do the same thing. I am trying myTabControl.SelectedTab.Index = 0
And I get an error saying its a read only property. Thanks.
You can set the SelectedTab property on the UltraTabControl.