コード例 #1
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            //LotIVTestPrintCommand2 LotIVTestPrintCommand2 = new LotIVTestPrintCommand2();
            //LotIVTestPrintCommand2.Run();
            LotIVTestPrintDialog frmPrintDialog = new LotIVTestPrintDialog();

            frmPrintDialog.ShowDialog();
        }
コード例 #2
0
        private void LotIVTestPrintDialog4_Load(object sender, EventArgs e)
        {
            LotIVTestPrintDialog LotIVTestPrintDialog = new LotIVTestPrintDialog();

            LotIVTestPrintDialog.FormBorderStyle = FormBorderStyle.None;
            LotIVTestPrintDialog.TopLevel        = false;                    //设置子窗体为非顶级窗体

            LotIVTestPrintDialog.Dock = System.Windows.Forms.DockStyle.Fill; //设置样式是否填充整个panel

            // panel1.Controls.Add(LotIVTestPrintDialog);
            LotIVTestPrintDialog.Parent = this.panel1;
            LotIVTestPrintDialog.Show();
        }