Hello
i have a form in which i have 5 tab pages(each with their unique name )and one TabControl
eg. say ...I HAVE admission form under which there are fees, balance enq...tabs......
In MDI i have menuitem under FEES under which i have item Balance enq...etc...
The problem is that when i click on this balance enq...a specific tab (related to balance enq/ named balance) should be opened. how to do this ??
i have tried this :
Dim student As New student_adm
Dim tabpage3 As New TabPage
student.TabControl1.SelectTab(tabpage3)
however when i click on the balance in the mdi i get following error :
InvalidArgument=Value of '-1' is not valid for 'index'.
Parameter name: index
So i tried to insert a TabIndex eg
student.TabControl1.SelectTab(1)
however now nuthing opens when i click....
Whts the problem and whts the correct code ??? PLZ Help me out...
cya
Rohan