The best reference (that I have found) for developing with Pocket Outlook on Windows Mobile can be found here:
http://msdn2.microsoft.com/en-us/library/aa454890.aspx
These examples are in C#, but the conversion to VB.NET is pretty easy. Here is an example of some of the code in VB.NET:
Dim contactPicker As New ChooseContactDialog
Dim result As DialogResult = contactPicker.ShowDialog
If result = Windows.Forms.DialogResult.OK Then
Dim message As EmailMessage = New EmailMessage()
message.Subject = "GTViewer Photo"
message.BodyText = "........"
Dim addressee As Recipient = New Recipient(contactPicker.SelectedContact.Email1Address)
message.To.Add(addressee)
Dim picture As Attachment = New Attachment(filename)
message.Attachments.Add(picture)
Dim _outlook As OutlookSession = New OutlookSession()
MessagingApplication.DisplayComposeForm(message)
_outlook.Dispose()
End If
No comments:
Post a Comment