Results 1 to 1 of 1

Thread: outlook custom form: event order

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    4

    outlook custom form: event order

    First of all, sorry if I've put this thread in the wrong forum. I'm a total newbie to this forum and VB
    Edit: I just noticed: I t should probably be in the VB script forum, sorry about that.

    I'm designing an outlook custom (appointment) form with compose page and read page seperated
    This is what I do:
    Code:
    Dim ComposeMode  'global
    ComposeMode=true
    
    Function Item_Open()
       if ComposeMode then
           'do stuff with controls that are only on the compose page and not on the read page
       else
           'do stuf with items only on read page
       end if
    End Function
    
    Function Item_Read()
      ComposeMode=false
    End Function
    But in the help files of outlook I read this:
    Order of Events
    Except for certain form events, your program cannot assume that events will occur in a particular order, even if they appear to be called in a consistent sequence. The order in which Outlook calls event handlers might change depending on other events that might occur, or the order might change in future versions of Outlook.
    So what if the Item_open event comes before the Item_read event?

    I've had some problems that he complains about not finding an object but I not able to reproduce the problem. sometimes it works great. but in 1% of the cases it doesn't.

    Is there an other, better, way for doing this?

    should I copy everything from the compose page to the read page and make them invisible (and vice versa)?


    Thanks

    Maes
    Last edited by maes; Oct 19th, 2004 at 09:34 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width