I’m going to need this in a few days.
Link to Create Setup Files for your Windows Mobile Applications Using Visual Studio 2005
I have a Window Application (runs on the desktop). It does the following:
I need to make sure the reminder part works.
Next step — create the SmartPhone Today plugin
I have lots of ideas for the future. This could be set up for any type of irregularly reoccuring tasks.
I came up with this idea in the shower, and just realized while in the shower this morning that saving the Entry ID is silly — would work find if this was desktop only or mobile phone only application, but since both can write Tasks in the end, I need to do a search on the subject line.
Just a quick note to remind me where this article is. I’ve been looking at http://support.microsoft.com/kb/293152/ which I think will help me mark my tasks complete.
Didn’t get to spend much time on the project, today. I got appointments to create on my older Gateway tablet, but couldn’t get them to work on my new Lenovo, which is where I have working on this. The weird part is that I couldn’t Add an Reference to the Microsoft Office PIAs, but when I transferred the program to the other computer using my network, added the code to create a task, and then moved it back, the PIA reference was there. Weirdness.
I’ve decided to add a "reminder time" to the project, and with a little research found I can use the DateTimePicker to get my time.
And now I’m fighting with the notebook again. The district installed Groupwise which is getting into the way. I am deleting the Groupwise account now, but am probably going to have to uninstall Groupwise.
I decided I wanted to do the regular Windows to Outlook side of the project first. It makes sense having both, as I often change my sets in the morning, in front of my desktop computers.
So I wanted to figure out how to create an Outlook item. I started with this article:
http://support.microsoft.com/kb/313787
Lovely article but I couldn’t get it to compile. I started doing research on the error message and kept running into references to PIA’s. I found them, and I had to install them.
I also found this article which was helpful too:
So here is what I had to do to create an Outlook Calendar entry (which does work).
I had to add an reference to the PIAs:
Add a reference to the PIAs. To do this, follow these steps:
| a. | On the Project menu, click Add Reference. |
| b. | Click the NET tab, locate Microsoft.Outlook.Interop.Outlook, and then click Select. |
| c. | In the Add References dialog box, click OK |
The next thing I had to do was to add the following statement to the top of the program:
It now looks like:
Imports System.Reflection
Imports outlook = Microsoft.Office.Interop.Outlook
Module Module1
Sub Main()
‘ Create an Outlook application.
Dim oApp As Outlook.Application = New Outlook.Application()
‘ Get NameSpace and Logon.
Dim oNS As Outlook.NameSpace = oApp.GetNamespace("mapi")
oNS.Logon("YourValidProfile", Missing.Value, False, True) ‘ TODO:
‘ Create a new AppointmentItem.
Dim oAppt As Outlook.AppointmentItem = oApp.CreateItem(Outlook.OlItemType.olAppointmentItem)
‘oAppt.Display(true) ‘Modal
‘ Set some common properties.
oAppt.Subject = "Created using OOM in C#"
oAppt.Body = "Hello World"
oAppt.Location = "Samm E"
oAppt.Start = Convert.ToDateTime("11/30/2001 9:00:00 AM")
oAppt.End = Convert.ToDateTime("11/30/2001 1:00:00 PM")
oAppt.ReminderSet = True
oAppt.ReminderMinutesBeforeStart = 5
oAppt.BusyStatus = Outlook.OlBusyStatus.olBusy ‘ olBusy
oAppt.IsOnlineMeeting = False
‘ Save to Calendar.
oAppt.Save()
‘ Display.
‘oAppt.Display(true)
‘ Logoff.
oNS.Logoff()
‘ Clean up.
oApp = Nothing
oNS = Nothing
oAppt = Nothing
End Sub
End Module
I’ve created a simple Windows — not Windows Mobile yet — application that shows the date of the next infusion change if the user has put in the number of days, or has put in the Total number of units and the average daily total. The application does several things I haven’t done before:
So the next decision to be made, is do I make this a Windows program that updates outlook, so should I got straight to the Windows Mobile application. I think having it both places might be useful.
The actual questions are at: http://www.collegeboard.com/student/testing/ap/compsci_a/samp.html
The Litvin’s have answers at: http://www.skylit.com/beprepared/fr2008.html
I’ve been giving this a lot of thought and at the moment, this is what I think I need:
Here’s the bloody details, so the research end is going well.
How To Access Pocket Outlook Objects from VBCE