use Graphic class in draw/ing namespace
then pass your form/panel.... instance to it
Graphic g= Form1.CreateGraphic();
then u can call g and put dot ('.') after it and all function of drawing will appear .
you can crate pen from brushes and bruses from color ...(i'm not sure, you can see if you read tool tips)
Brush b = new SolidBrush(Color.Red);
Pen p = new Pen(brush 1);
and last thing...
if you need to keep data, and dpont let them destroy, first generate a buffer...
like:
Bitmap bmp=new Bitmap();
now instead of the thing i tol you above use:
Graphics g= Graphics.FromImage(bmp);
PictureBox1.Image=bmp;
in this form, you buffer data in Image style variable, and then pass this variable as an image to your image property of image Box...