pnlMain.Width = 100%x
pnlMain.Height = 100%y
pnlTitle.Width = pnlMain.Width
pnlTitle.Top = 0
pnlInput.SetLeftAndRight(4dip,pnlMain.Width-4dip)
pnlInput.SetTopAndBottom(pnlTitle.Bottom + 5dip,200dip)
pnlTbl.SetLeftAndRight(4dip,pnlMain.Width-4dip)
pnlTbl.SetTopAndBottom(pnlInput.Bottom + 5dip,pnlMain.Bottom - 5dip)
pnlData.SetLeftAndRight(8dip,pnlTbl.Width-8dip)
pnlData.SetTopAndBottom(8dip,pnlTbl.Bottom -15dip)
'pnlData.Top = 8dip
'pnlData.Height = pnlTbl.Height -15dip