private void PrintLabs_Load(object sender, EventArgs e) { dateTimePicker1.Value = DateTime.Today; foreach (Control con in Controls) { con.Hide(); } PrintButton.Show(); CancelButton.Show(); panel1.Show(); this.Controls.Add(report); }
private void PrintableReport_Load(object sender, EventArgs e) { dateTimePicker1.Value = DateTime.Today; foreach (Control con in Controls) { con.Hide(); } PrintButton.Show(); CancelButton.Show(); panel1.Show(); this.Controls.Add(report); report.BringToFront(); report.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Left; }