using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Screen_Recording
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
Bitmap bmp;
Graphics gr;
private void btn_start_Click(object sender, EventArgs e)
{
timer1.Start();
}
private void btn_stop_Click(object sender, EventArgs e)
{
timer1.Stop();
}
private void timer1_Tick(object sender, EventArgs e)
{
bmp = new Bitmap(Screen.PrimaryScreen.WorkingArea.Width,
Screen.PrimaryScreen.WorkingArea.Height);
gr = Graphics.FromImage(bmp);
gr.CopyFromScreen(0, 0, 0, 0, new Size(bmp.Width, bmp.Height));
pictureBox1.Image = bmp;
pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
}
}
}
In My form I add two button "
Start
" and "
Stop
", when I am pressing START, My form start to showing My System Screen On form, and after pressing "
STOP
" button Its stop.
Now i Want to save it(Whole Video whatever I am doing in my computer Screen, after pressing "START" button), in particular folder,
And want to send it On some mail id.
Anyone one Can help me for it??
Noted: Its desktop application using C#
regards,
Varun Nayak