Results 1 to 3 of 3

Thread: [RESOLVED] silverlight wp7 vb.net gamerservices Guide.BeginShowKeyboardInput

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2008
    Posts
    778

    Resolved [RESOLVED] silverlight wp7 vb.net gamerservices Guide.BeginShowKeyboardInput

    Hello,

    I am trying to find out a detail which I was expecting to be there but I can't see it:

    I am using a messagebox with an extry field, now the purpose of this is that it has to bring a value back the user enters, but also what I want to know if the user would click the cancel button, the question is what tells me in the response what button got clicked (ok or cancel), I cannot see, all it provides is the text the user enters but what button got clicked doesn't seem to be there.

    Code:
    Private Sub btnSend_Click(sender As System.Object, e As System.Windows.RoutedEventArgs)
    
            job = DirectCast(e.OriginalSource, FrameworkElement).DataContext()
    
            Guide.BeginShowKeyboardInput(Microsoft.Xna.Framework.PlayerIndex.One, "Send Job", "Enter an email address or click ok and select a contact", "", New AsyncCallback(AddressOf GetString), Nothing)
    
        End Sub
    
        Private Sub GetString(res As IAsyncResult)
    
            Dim test As String = Guide.EndShowKeyboardInput(res)
    
            If test = "" Then
    
                Dim task As New EmailAddressChooserTask()
                task.Show()
    
                AddHandler task.Completed, AddressOf emailAddressChooserTask_Completed
    
            Else
    
                SendEmail = New SendEmail
    
                SendEmail.SendEmail(job.jobid, test)
    
                NavigationService.GoBack()
    
            End If
    
        End Sub
    I just want to know what did the user click, not only rely on the text entered
    Last edited by MrtforCode; Feb 28th, 2012 at 04:49 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