|
-
Jun 23rd, 2008, 03:11 AM
#1
Thread Starter
Member
Camera Control WM6
Hi
I learned that I can use Camera Dialog for camera. However, I need to control turning on and turning off the camera.
I notice that using the InTheHand API, there is one ReadOnly property for Camera.
http://inthehand.com/library/html/P_...eraEnabled.htm
But it is ReadOnly and cannot be set in RunTime by doing a simple CameraEnabled = False.
Is there other ways to control the camera?
I'll need the codes in VB.NET.
Thanks
Last edited by heatgutsexe; Jun 23rd, 2008 at 04:00 AM.
-
Jun 23rd, 2008, 08:30 AM
#2
Frenzied Member
Re: Camera Control WM6
What do you mean 'control the camera'?
.ShowDialog invokes the camera - when it returns to your code, then
If Not String.IsNullOrEmpty(camCapture.FileName) Then
tells you whether a photograph has been taken or not?
What exactly are you looking to control?
-
Jun 23rd, 2008, 07:15 PM
#3
Thread Starter
Member
Re: Camera Control WM6
Something like a parental control. Like... Do not allow camera to be used on the phone at all.
-
Jun 24th, 2008, 02:10 AM
#4
Frenzied Member
Re: Camera Control WM6
The only thing I could think would be an application running in the background picking up the camera button press, and discarding it.
The namespace in .Net is just to take photos/videos.
-
Jun 24th, 2008, 03:00 AM
#5
Thread Starter
Member
Re: Camera Control WM6
A few questions.
Firstly, how do you run the program in the background?
Secondly, how do I pick up the pressing of the camera to cancel it?
Thanks.
-
Jun 24th, 2008, 05:17 AM
#6
Frenzied Member
Re: Camera Control WM6
Run it as a service or hide the form.
If using a form, use keypreview = true and see what button is pressed - if it is the camera, then do what you need
-
Jun 24th, 2008, 08:10 PM
#7
Thread Starter
Member
Re: Camera Control WM6
Thanks, your advice is helpful, however, there is one issue I also need to take into account. How do I know the camera mode (not the camera button) is triggered and how do I cancel it?
As in how can I tell if the user has went to "Pictures & Videos" and triggered the camera there?
One way to run a program at startup which I know is simpily copy a shortcut of the program to "\Windows\StartUp\", but is there a more "secure" method such as placing it in the registry or something? Do you have a sample of that?
Thanks for all the trouble.
Last edited by heatgutsexe; Jun 25th, 2008 at 01:39 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|