Morning,
ive created 4 new tabs in the ultratabcontrol. Through VB.NET code how do i get to the next tab using a next button?
ultratabcontrol.selectedtab = ??????
ta
Hello MisterRafter,
Sure, you could do this like the following in the Button Click for example:
private void ultraButton1_Click(object sender, EventArgs e) { if (ultraTabControl1.SelectedTab != null && ultraTabControl1.SelectedTab.Index + 1 < ultraTabControl1.Tabs.Count) { ultraTabControl1.Tabs[ultraTabControl1.SelectedTab.Index + 1].Selected = true; } }
Please feel free to let me know if you have any other questions with this matter.
now i need to work out a way to make the next button work for all tabs without creating seperate buttons
Basically ive got a NEXT button outside the tabcontrol so it will allow me to go to the next tab.
i used this bit, works fine in the button click event.
ultraTabControl1.Tabs(2).Selected = true
Hello misterRafter,
I am not sure what do you mean by "Next Button" , is this part of your UltraTab control or this is kind of stand alone button?
If you need programatically do select any tab from your UltraTab control you could use one of the below approaches:
ultraTabControl1.SelectedTab = ultraTabControl1.Tabs(3) ultraTabControl1.Tabs(2).Selected = true