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
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: removed email[/edit]