コード例 #1
0
        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);
        }
コード例 #2
0
        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;
        }