Click here to Skip to main content
13,701,189 members

.NET Framework

 
AnswerRe: Circle Progress in Visual Studio 2008 Pin
Pete O'Hanlon7-Nov-17 21:47
protectorPete O'Hanlon7-Nov-17 21:47 
AnswerRe: Circle Progress in Visual Studio 2008 Pin
Gerry Schmitz8-Nov-17 4:01
memberGerry Schmitz8-Nov-17 4:01 
GeneralRe: Circle Progress in Visual Studio 2008 Pin
Member 135090598-Nov-17 13:48
memberMember 135090598-Nov-17 13:48 
QuestionCast issue with CaptureFileAsync() Pin
MA-Navinn26-Oct-17 2:54
memberMA-Navinn26-Oct-17 2:54 
AnswerRe: Cast issue with CaptureFileAsync() Pin
Richard MacCutchan26-Oct-17 3:30
protectorRichard MacCutchan26-Oct-17 3:30 
AnswerRe: Cast issue with CaptureFileAsync() Pin
Richard Deeming26-Oct-17 3:53
mvpRichard Deeming26-Oct-17 3:53 
GeneralRe: Cast issue with CaptureFileAsync() Pin
MA-Navinn27-Oct-17 6:00
memberMA-Navinn27-Oct-17 6:00 
GeneralRe: Cast issue with CaptureFileAsync() Pin
MA-Navinn7-Nov-17 22:59
memberMA-Navinn7-Nov-17 22:59 
Hi,
I've finally manage to compile and execute the code as suggested:
    Private Async Sub MassPointImageBox_Click(sender As Object, e As EventArgs) Handles MassPointImageBox.Click
        MsgBox("Take a Picture")
        Dim capture = New CameraCaptureUI()
        capture.PhotoSettings.Format = CameraCaptureUIPhotoFormat.Jpeg
        capture.PhotoSettings.MaxResolution = CameraCaptureUIMaxPhotoResolution.HighestAvailable
        Dim GetPhotoTask As Task(Of StorageFile) = capture.CaptureFileAsync(CameraCaptureUIMode.Photo).AsTask
        Dim Photo As StorageFile = Await GetPhotoTask
        If Photo Is Nothing Then
            MsgBox("No picture taken")
        Else
            MsgBox(Photo.Path)
        End If
End Sub


However, the camera app does not open, and photo is always nothing. AnyOne ever had this kind of issue with .CaptureFileAsync ?
Thanks
QuestionProcess data as you type Pin
Dirk Bahle13-Oct-17 8:21
memberDirk Bahle13-Oct-17 8:21 
AnswerRe: Process data as you type Pin
Eddy Vluggen13-Oct-17 22:39
professionalEddy Vluggen13-Oct-17 22:39 
GeneralRe: Process data as you type Pin
Dirk Bahle14-Oct-17 1:34
memberDirk Bahle14-Oct-17 1:34 
GeneralRe: Process data as you type Pin
Eddy Vluggen14-Oct-17 2:40
professionalEddy Vluggen14-Oct-17 2:40 
GeneralRe: Process data as you type Pin
Dirk Bahle14-Oct-17 7:27
memberDirk Bahle14-Oct-17 7:27 
GeneralRe: Process data as you type Pin
Eddy Vluggen17-Oct-17 2:06
professionalEddy Vluggen17-Oct-17 2:06 
AnswerRe: Process data as you type Pin
Gerry Schmitz14-Oct-17 8:35
memberGerry Schmitz14-Oct-17 8:35 
GeneralRe: Process data as you type Pin
Dirk Bahle16-Oct-17 3:15
memberDirk Bahle16-Oct-17 3:15 
AnswerRe: Process data as you type Pin
Pete O'Hanlon14-Oct-17 11:47
protectorPete O'Hanlon14-Oct-17 11:47 
GeneralRe: Process data as you type Pin
Dirk Bahle16-Oct-17 3:19
memberDirk Bahle16-Oct-17 3:19 
QuestionAn unhandled exception of type 'System.AccessViolationException' occurred in System.Data.dll Pin
indian1434-Oct-17 15:30
memberindian1434-Oct-17 15:30 
AnswerRe: An unhandled exception of type 'System.AccessViolationException' occurred in System.Data.dll Pin
Richard MacCutchan4-Oct-17 22:22
protectorRichard MacCutchan4-Oct-17 22:22 
GeneralRe: An unhandled exception of type 'System.AccessViolationException' occurred in System.Data.dll Pin
indian1435-Oct-17 3:08
memberindian1435-Oct-17 3:08 
GeneralRe: An unhandled exception of type 'System.AccessViolationException' occurred in System.Data.dll Pin
Richard MacCutchan5-Oct-17 3:14
protectorRichard MacCutchan5-Oct-17 3:14 
GeneralRe: An unhandled exception of type 'System.AccessViolationException' occurred in System.Data.dll Pin
indian1435-Oct-17 3:18
memberindian1435-Oct-17 3:18 
GeneralRe: An unhandled exception of type 'System.AccessViolationException' occurred in System.Data.dll Pin
Richard MacCutchan5-Oct-17 3:27
protectorRichard MacCutchan5-Oct-17 3:27 
GeneralRe: An unhandled exception of type 'System.AccessViolationException' occurred in System.Data.dll Pin
indian1435-Oct-17 3:34
memberindian1435-Oct-17 3:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.180910.1 | Last Updated 15 Sep 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid