G
Guest
Outlook 2002 and above.
I am writing my first Add-In for Outlook.
Using VS 2005 and the Extensibility project.
I am not using VSTO.
I am using C# not VB.
I have been googling around, but as soon as I mention I want to create a
"form", all the suggestions indicate I should create the form inside the
Outlook UI.
I need to write an Add-In that will:
1. Open an object (mail, cal, task, contact)
2. Display a button to assign it to an account
3. Display a list of accounts and allow the user to choose which one
4. Save the account number in a user defined field of the object.
So far:
1&2. This was easy enough, found lots of examples that allowed me to create
the button and perform an action.
3. I will be getting the list of accounts from an external source (a
database actually). I guess I could create a folder and add items into this
folder (not sure how to make the items in the folder read-only).
So how do I create a form via the AddIn on the fly to allow the user to
choose from a list of accounts?
I am looking for a link to some sample that does something similar, I am
guessing there is something out there that I can't find that will get me
there most of the way.
4. That should be as simple as:
Item.Userproperties.Add("MyField", 1) (but in C#).
Any pointers or articles to get me on my way will be greatly appreciated.
Thanks,
Dave
I am writing my first Add-In for Outlook.
Using VS 2005 and the Extensibility project.
I am not using VSTO.
I am using C# not VB.
I have been googling around, but as soon as I mention I want to create a
"form", all the suggestions indicate I should create the form inside the
Outlook UI.
I need to write an Add-In that will:
1. Open an object (mail, cal, task, contact)
2. Display a button to assign it to an account
3. Display a list of accounts and allow the user to choose which one
4. Save the account number in a user defined field of the object.
So far:
1&2. This was easy enough, found lots of examples that allowed me to create
the button and perform an action.
3. I will be getting the list of accounts from an external source (a
database actually). I guess I could create a folder and add items into this
folder (not sure how to make the items in the folder read-only).
So how do I create a form via the AddIn on the fly to allow the user to
choose from a list of accounts?
I am looking for a link to some sample that does something similar, I am
guessing there is something out there that I can't find that will get me
there most of the way.
4. That should be as simple as:
Item.Userproperties.Add("MyField", 1) (but in C#).
Any pointers or articles to get me on my way will be greatly appreciated.
Thanks,
Dave