Click here to Skip to main content
13,095,921 members (53,817 online)
Rate this:
Please Sign up or sign in to vote.
See more:

First my question and then the trouble I am having. how can I make sure the picture is saved everytime instead of periodically, I need help with this... thanks..

I am using a portable terminal with this terminal I am trying to use the built in camera.
I am using a function

Collapse | Copy Code
camera.SnapPicture(FileTmp, m_QualityLevel);
FileTmp referes to a path and a file name
m_QualityLevel is the type format of the picture which is a jpg format high quality.

All that is fine, the problem is if I step through the program it seems to work.
I have 3 buttons.
Activate camera, Foto, Stop.

Activate Button sets up the camera and shows the picture in the picturebox.
Foto is used to take the picture and there is where I have the above line.

Stop Button, stops the camera and clears the PictureBox.

If I take a picture quickly press the stop button afterwards it does not save the picture all though it seems to go through the line, because after the above mentioned line I have a status box which says picture saved. If I take the picture and wait a few seconds it seems to save the picture ok.

I am using the following line... btnStop_Click(btnStop, e); to press the button stop button.
I have used e as well as eventarg.empty and it does the same thing.

I would like to save the picture and use the program button press to avoid havng to physically click the button.

Hope you all can help and that I have expressed myself well.

Please let me know. you can email me at: [edit]removed email[/edit]


Peter Fraga
Posted 30-May-13 12:17pm
Sergey Alexandrovich Kryukov 30-May-13 19:30pm
It's possible to screw up anything, in many different ways. How could we possibly see what did you do wrong? Due to improved weather after long rain, my access to your hard drive is somewhat limited.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170813.1 | Last Updated 30 May 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100