you need to cast the sidebar first :
dim rightSideBar as ABMSidebar = page.GetSidebar("rightsidebar")
Also I think you should initialize the extra sidebar as a panel (InitializeAsPanel) and access the component like dim table as abmtable = rightSideBar.Content.Component("tbl").
Initialize as panel makes the extra sidebar behave more like a modal sheet.