Just get the current tab index, store it in an integer, increment the integer by 1, and reset the selectedIndex:
(Visual C++.Net)
int x = tabControl1->SelectedIndex;
tabControl1->SelectedIndex = x+1;
Place this under a button_Click event, and the next Tabpage will be displayed.
|