Re: Load/Unload events
From: MikeD (nobody_at_nowhere.edu)
Date: 09/06/04
- Next message: J French: "Re: Resource file"
- Previous message: Atreju: "Re: Need to read Exif data JPG from digital camera"
- In reply to: Jezebel: "Re: Load/Unload events"
- Next in thread: Jezebel: "Re: Load/Unload events"
- Reply: Jezebel: "Re: Load/Unload events"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 6 Sep 2004 09:47:15 -0400
"Jezebel" <dwarves@heaven.com.kr> wrote in message
news:uLS0cv4kEHA.1048@tk2msftngp13.phx.gbl...
> There are several design issues here. First, you should not be doing this
> kind of processing in the Load event. That event is fired when the form is
> in the process of being displayed; code there should be restricted to
> preparing the form's display, not making decisions about whether or not to
> display at all. Use properties rather than a global flag (your gEsc).
>
That's incorrect. Loading a form has nothing to do with the form being
displayed. You can load a form (using the Load statement) without showing
it. Applying that to your advice, I do agree that the Load event is not
where you should be determining whether or not to load the form since it's
already in the process of loading.
Mike
- Next message: J French: "Re: Resource file"
- Previous message: Atreju: "Re: Need to read Exif data JPG from digital camera"
- In reply to: Jezebel: "Re: Load/Unload events"
- Next in thread: Jezebel: "Re: Load/Unload events"
- Reply: Jezebel: "Re: Load/Unload events"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|