private void tsRptInventorybyInterval_Click(object sender, EventArgs e) { pnlContext.Controls.Clear(); pnlContext.Controls.Clear(); ProductSalesCtl objSalesProduct = new ProductSalesCtl(this); objSalesProduct.Parent = this; pnlContext.Controls.Add(objSalesProduct); objSalesProduct.Dock = DockStyle.Fill; }