What results do you get on Vista and on XP?
I use Size = 0 and/or EntryID = "" to test for new items. That of course
doesn't account for an existing item that is put into edit mode, but
discerning whether or not a form is in compose mode has always been a hack
in Outlook.
--
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
"Bill Billmire" wrote in message
...
Hello,
I am curious if there is a better way to differentiate when the form is in
compose verses read state. The reason I am asking is, in previous
versions
of OLK the following code would adjust the size of the opening window to
accomodate all the fields in the form as follows:
Sub Item_Open()
If Item.CreationTime = #1/1/4501# Then
Set objInspector = Item.GetInspector
objInspector.Left = 600
objInspector.Width = 640
objInspector.Top = 345
objInspector.Height = 535
Set objInspector = Nothing
ElseIf Item.Size 0 Then
Set objInspector = Item.GetInspector
objInspector.Left = 650
objInspector.Width = 640
objInspector.Top = 230
objInspector.Height = 720
Set objInspector = Nothing
End If
End Sub
Now (with OLK 2007) I get different results depending on whether the OS is
Windows Vista or WinXP.
Thanks in advance...
--
Bill Billmire