|
-
Feb 28th, 2012, 04:45 AM
#1
Thread Starter
Fanatic Member
[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.
-
Feb 29th, 2012, 02:34 PM
#2
Re: silverlight wp7 vb.net gamerservices Guide.BeginShowKeyboardInput
I think the Guide.EndShowKeyboardInput(res) returns NOTHING (NULL in C#) if a user cancels
-
Mar 1st, 2012, 06:59 AM
#3
Thread Starter
Fanatic Member
Re: silverlight wp7 vb.net gamerservices Guide.BeginShowKeyboardInput
Thank you, that's correct 
resolved
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
|