I was unable to reproduce the problem with the latest version of rad Tabstrip
. I created a sample project with the RadTabStrip
control and did the following:
- Dragged and dropped a new instance of radTabStrip from the VS2005 toolbox.
- Dragged and dropped two new instances of radButton from the VS2005 toolbox and named them Previous and Next
- Handled the click events of those buttons and pasted your source code there
- Added three TabItems to the RadTabStrip and placed an instances of RadButton on the first, RadCheckBox on the second and RadTrackBar on the third.
When I clicked the previous or next buttons I was successfully moved back and forth to the the selected tabItem.
Hint: You could add a check about getting an IndexOutOfRange
exception because there is no check whether the index of the tabItem is valid when you change the selected tab.
Can you give us more information on the version you are currently using? The problem you are experiencing may be related to an older versions of our suite. If you could reproduce the problem with the latest version of RadControls for WinForms (Q4 SP2), please send us a sample project where the error is present. You can do so in a new support ticket.