Ejemplo n.º 1
0
        //Impression
        private void BT_Print_Click(object sender, EventArgs e)
        {
            var choice = MessageBox.Show("Voulez-vous lancer l'impression ?", "Confirmation Impression", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (choice == DialogResult.Yes)
            {
                WB_Pages.ShowPrintDialog();
            }
        }
Ejemplo n.º 2
0
 //Passer le texte en plein écran
 private void BT_FullScreen_Click(object sender, EventArgs e)
 {
     if_fullscreen   = 1;
     FormBorderStyle = FormBorderStyle.None;
     WindowState     = FormWindowState.Maximized;
     WB_Pages.BringToFront();
     WB_Pages.Location     = new Point(0, 0);
     WB_Pages.Height       = WB_Pages.Document.Window.Size.Height + height;
     WB_Pages.Width        = WB_Pages.Document.Window.Size.Width + Screen.PrimaryScreen.Bounds.Width;
     textSize              = 24;
     WB_Pages.DocumentText = "<html><div style='font-size:" + textSize + "px;width:" + (Screen.PrimaryScreen.Bounds.Width - 30) + "px; margin-left:15px; margin-right:100px;'>" + displayText + "</div></html>";
 }