cancel
Showing results for 
Search instead for 
Did you mean: 

how to activate a TAB in the form

Former Member
0 Kudos

hi all,

In my form 3 tab's are there....in each tab there is a matrix.Initially when the form opened tab 1 will be displayed.so in particular situation that is in validation point if null value is there in tab 2 means then the control should got to tab 1 to tab2....so how to raise the event to shift from tab1 to tab2..(is there any click event to click on TAB 2)

regards,

shangai.

Accepted Solutions (1)

Accepted Solutions (1)

Nussi
Active Contributor
0 Kudos

Hi,

i guess you mean Tab = Folder.

to change the Tab do the following:

Click on the Tab with oForm.Items.Item("Tab2").Click

and set the oForm.PaneLevel = 2

Tab changed

lg David

Former Member
0 Kudos

hi david,

thanks,it solved my problem... this line solved my problem.

oForm.Items.Item("Tab2").Click. but i didn't set that oForm.PaneLevel = 2 .........even not including this line my coding works fine.....

regards,

shnagai.

Answers (1)

Answers (1)

Former Member
0 Kudos

U can set the pane level on the form load.

Or u can click on the pane (tab) which u want to show on form load.

Hope it helps,

Vasu Natari.

Former Member
0 Kudos

hi vasu,

i think i have explained u in a wrong way....this is my coding...


If Double.Parse(IIf(NoOfPcs.Value = "", "0", NoOfPcs.Value)) = 0 Then
 objSBO_Application_Tag.MessageBox("Row : " & I.ToString & " No. Of PCS should be greater than zero")

*<----In this point my form should open tab2 & show the column in matrix,but it shows the tab1 only-------------------->* 

*<--tem id for tab 2 is 'tab_2'->     
                                            objMatStone.Columns.Item("NoOfPcs").Cells.Item(I).Click(BoCellClickType.ct_Regular)

                            Return False
                        End If

I think now u understand the problem....

regards,

shngai.

Edited by: shangai Nights on Sep 18, 2008 7:57 AM

Former Member
0 Kudos

Hi,

PLz check the below modifications,

If Double.Parse(IIf(NoOfPcs.Value = "", "0", NoOfPcs.Value)) = 0 Then
 objSBO_Application_Tag.MessageBox("Row : " & I.ToString & " No. Of PCS should be greater than zero")
 
*<----In this point my form should open tab2 & show the column in matrix,but it shows the tab1 only-------------------->* 
'LOad ue form here.. and after load Click on the tab_2
oItem = oForm.Items.Item("tab_2")
oItem.Click()
'Now u set the pane level of the form. 
oForm.PaneLevel = 2 'Whatever the pane level is for tab_2 plz set that here.
 
*<--tem id for tab 2 is 'tab_2'->     
                                            objMatStone.Columns.Item("NoOfPcs").Cells.Item(I).Click(BoCellClickType.ct_Regular)
 
                            Return False
                        End If

Hope it helps,

Vasu Natari.