Good, I'm glad you got it working.
I believe what you could supply instead of Empty for C# would be a
System.MissingValue. I'll have to try that when I get a chance.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"pnp" wrote in message
...
Now it seems to work. I have added some more properties, and it seems to
work
fine now.
Heres the C# code i use to mark the mailitem complete.
---------- CODE BEGIN ------------
private void markMailItemComplete(Outlook.MailItem email)
{
email.FlagIcon =
Microsoft.Office.Interop.Outlook.OlFlagIcon.olNoFl agIcon;
email.FlagStatus =
Microsoft.Office.Interop.Outlook.OlFlagStatus.olFl agComplete;
email.FlagRequest = "Completed";
email.ReminderSet = false;
email.Save();
}
----------- CODE END -------------
This seems to do the trick. I don't know if it was because I was missing
the
FlagRequest and ReminderSet before or just because the order was another,
I
think i sat the FlagComplete status before FlagIcon = olNoFlagIcon?
Anyway, it seems to work as supposed now.
So have a nice weekend, and thanks for your help.
/Anders
"pnp" wrote:
If I understand VB6 correct, empty is what in VB.NET is Nothing, equal to
'null' in C#.
But - I can't set the FlagIcon to null in C# because it's a value
property
and not an object.
Any other ideas?
/Anders