I have a form in which i have 5 tab pages i have a doubt as to how to open a specific tab page within that form on button click.

Say, i have an admission form in which when i click on save the details should be saved and then the fees tabpage should be opened! how to do it ?
i tried as :

dim fees as new Tabpage
and then i wrote:
formname.fees.show

BUT I IT DIDNT WORK....

DEN I TRIED

DIM STUDENT_ADM AS NEW STUDENT_ADMISSION
STUDENT_ADM.FEES.SHOW

BUT I AM NOT GETTING THE DESIRED OUTPUT ! HOW TO DO IT ???

PLZ HLP
WATING FOR QUICK RESPONSE !

CYA
ROHAN

Each tab page has a name. The default is TabPage1, TabPage2, ..., etc.
use:
TabControl1.SelectTab(TabPage2)

THANKS A LOT .....IT WORKED !

cya
Rohan

Each tab page has a name. The default is TabPage1, TabPage2, ..., etc.
use:
TabControl1.SelectTab(TabPage2)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.