Hi,
just started to program in c#, for windows mobile 2005 enviroment. im stuck on capture a picture.
My showDialogbox() comes up, i click ok to take pic, but the picture doesn't get saved, nor does the message "test" comes up either. What is wrong with my code?
Thanks in advance
i have written this:
Microsoft.WindowsMobile.Forms.
CameraCaptureDialog myPicture = new Microsoft.WindowsMobile.Forms.CameraCaptureDialog();
myPicture.Owner =
this;
myPicture.Title =
"Car";
myPicture.Mode =
CameraCaptureMode.Still;
myPicture.InitialDirectory =
@"\My Documents\p";
myPicture.DefaultFileName =
"car.jpeg";
if (myPicture.ShowDialog() == DialogResult.OK) {
MessageBox.Show("test");
}
myPicture.Dispose();
No one has replied yet! Why not be the first?
Sign in or Join us (it's free).