You can use timer /windows services for define a time interval after that screen captured.
To save captured image,you can make share folder on Teacher's System.
private void tick(object sender, EventArgs e)
{
try
{
System.Drawing.Bitmap Bitmap;
Graphics Graps;
Bitmap = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb);
Graps = Graphics.FromImage(Bitmap);
Random rr = new Random();
string s = rr.Next().ToString();
Graps.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
Bitmap.Save(@"\\192.168.1.12\Share" + s + ".Jpeg", ImageFormat.Jpeg);
}
catch (Exception ex)
{
}
}
Teacher can see these images on his system.