Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

: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

ima
Posted

to see the next tab,

TabControl1.SelectedIndex = TabControl1.SelectedIndex + 1

 

to see the previous tab

TabControl1.SelectedIndex = TabControl1.SelectedIndex - 1

 

Enjoy!!

George C.K. Low

  • *Experts*
Posted

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).

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...