private void NS_PrintPage(object sender, PrintPageEventArgs e)
        {
            Bitmap bmp = new Bitmap(PicBox1.Width, PicBox1.Height);

            PicBox1.DrawToBitmap(bmp, new Rectangle(0, 0, PicBox1.Width, PicBox1.Height));
            e.Graphics.DrawImage(bmp, 0, 0);
            bmp.Dispose();
        }
Example #2
0
        private void updatePictureBoxes()
        {
            PicBox1.Image = wheelimages[currentPosPerWheel[0]];
            PicBox1.Update();

            PicBox2.Image = wheelimages[currentPosPerWheel[1]];
            PicBox2.Update();

            PicBox3.Image = wheelimages[currentPosPerWheel[2]];
            PicBox3.Update();
        }