private void button1_Click(object sender, EventArgs e) { this.Hide(); timer1.Start(); } private void timer1_Tick(object sender, EventArgs e) { Bitmap b = new Bitmap(ScreenWidth, ScreenHeight); g = Graphics.FromImage(b); g.CopyFromScreen(Point.Empty, Point.Empty, Screen.PrimaryScreen.Bounds.Size); pictureBox1.Image = b; this.Show(); button2.Enabled = true; timer1.Stop(); }
DispatcherTimer
TimeSpan
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)