Code :
Activity.LoadLayout("lyoTabOrderNew")
Main.ThisPhone.SetScreenOrientation(1)
tabOrderNew.SetLayout(0dip,0dip,100%x,100%y)
tabOrderNew.Color=Colors.Red
tabOrderNew.AddTabWithIcon ("",bmp1,bmp2,"lyoOrderNew1")
tabOrderNew.AddTabWithIcon ("",bmp3,bmp4,"lyoOrderNew2")
Dim CornerRadius(2) As Float
CornerRadius(0)=15
CornerRadius(1)=0
TabManager.setTabGradientDrawable2(tabOrderNew, "TOP_BOTTOM", Colors.Blue, Colors.Transparent, CornerRadius)
pnlOrderNew.Width=tabOrderNew.Width
pnlOrderNew.Height=tabOrderNew.Height
pnlButtons.BringToFront
pnlButtons.Left=pnlOrderNew.Left
pnlButtons.Top=pnlOrderNew.Height-pnlButtons.Height
pnlButtons.Width=pnlOrderNew.Width
-->tabOrderNew is within "lyoTabOrderNew"
-->pnlOrderNew & pnlButtons is within the "lyoOrderNew1"
The target is to dock the "pnlButtons" to the bottom border of "pnlOrderNew" panel