I am trying to figure how to use Sharpbox in a Windows Phone 7 app written in VB. Whilst I usually have no difficulty translating c# to VB.Net, I cannot fathom how to translate ...
(App.Current as App).CloudAccess.BeginOpenRequest(LoginAsyncCallback, cfg, token);
... into VB.Net for Windows Phone.
I have a stub procedure ...
Sub LoginAsyncCallback(ar As IAsyncResult)
' end the assync call and take the token
App.AccessToken = App.CloudAccess.EndOpenRequest(ar)
... but get 'Argument not specified for parameter 'ar' of 'Public Sub LoginAsyncCallback(ar As System.IAsyncResult)'.' referencing the BeginOpenRequest line.
Can anypoe explain where I'm going wrong and provide a solution?
Thanks in advance,