Ok… so I was playign with Office integration today a bit and I wondered how easy it woudl be to make a tool that let me add Task items to Outlook. A few text boxes and a form later and it was all done. Anyway, here is the code that was attatched to the4 “go” button that actually did the work.
private void go_button_Click(object sender, EventArgs e)
{
Microsoft.Office.Interop.Outlook.Application olapp =
new Microsoft.Office.Interop.Outlook.Application();
Microsoft.Office.Interop.Outlook.TaskItem newtask =
(Microsoft.Office.Interop.Outlook.TaskItem)olapp.CreateItem
(Microsoft.Office.Interop.Outlook.OlItemType.olTaskItem);
newtask.Subject = task_subject.Text;
newtask.Body = task_body.Text;
newtask.Categories = task_categories.Text;
newtask.Save();
}