WM5.0 has three new ways of working with the camera, but unfortunately the two mechanisms easily accessible from managed code both require user input in order to capture an image.
The first new api is CameraCaptureDialog that allows an application to invoke the camera view so the user can capture stills, video or video and audio files to a store location on the device.
CameraCaptureDialog ccd = new CameraCaptureDialog();
pictureBox1.Image = new Bitmap(ccd.FileName);
View Complete Post