Results 1 to 7 of 7

Thread: Camera Control WM6

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2008
    Posts
    44

    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.

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    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?
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2008
    Posts
    44

    Re: Camera Control WM6

    Something like a parental control. Like... Do not allow camera to be used on the phone at all.

  4. #4
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    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.
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  5. #5

    Thread Starter
    Member
    Join Date
    Jun 2008
    Posts
    44

    Red face 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.

  6. #6
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    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
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  7. #7

    Thread Starter
    Member
    Join Date
    Jun 2008
    Posts
    44

    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
  •  



Click Here to Expand Forum to Full Width