sureshcd10 Posted March 5, 2004 Posted March 5, 2004 :confused: I have a tabpage control placed on a form.With tabpages named tabpage1,tabpage2,tabpage3 At run time I want to navigate through the tabpages while I clcick on a cmdbutton When I press a commandButton.I want to navigate to the next tabpage at run time Quote ima
georgepatotk Posted March 5, 2004 Posted March 5, 2004 to see the next tab, TabControl1.SelectedIndex = TabControl1.SelectedIndex + 1 to see the previous tab TabControl1.SelectedIndex = TabControl1.SelectedIndex - 1 Enjoy!! Quote George C.K. Low
*Experts* Bucky Posted March 5, 2004 *Experts* Posted March 5, 2004 Make sure that you add some If statements to make sure that you don't set SelectedIndex too low (below 0) or too high (more than the highest index). Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
sureshcd10 Posted March 8, 2004 Author Posted March 8, 2004 Thank u 4 Well its working Thank u all 4 u r help. Sureshcd10 (Abhilash M.K) Quote ima
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.