CameraCaptureDialog

csharp New Zealand
  • 13 years ago

    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();

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Engineers are all basically high-functioning autistics who have no idea how normal people do stuff.” - Cory Doctorow