Re: Load/Unload events

From: MikeD (nobody_at_nowhere.edu)
Date: 09/06/04


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



Relevant Pages

  • Re: Next Version of GDI+ (maybe GDI+ 2.0)
    ... loading and manipulating of such files isn't lightning fast unless you have really powerfull dedicated hardware. ... to see whole image you need to read whole image, and then eventualy generate a smaller sample for display. ... BUT to have this smaler sample you need to load ALL the pixels of oryginal image. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Next Version of GDI+ (maybe GDI+ 2.0)
    ... Alejandro Lapeyre ... > loading and manipulating of such files isn't lightning fast unless you ... > smaller sample for display. ... > load ALL the pixels of oryginal image. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Next Version of GDI+ (maybe GDI+ 2.0)
    ... second is that even if you want only to see the image, you need to load all of it's pixels. ... smaller sample for display. ... BEFORE loading it. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Next Version of GDI+ (maybe GDI+ 2.0)
    ... You don't need to load the full image to apply an effect on it. ... You do thinks sequentially, you read a bunch of pixels, process them, ... > loading and manipulating of such files isn't lightning fast unless you ... > smaller sample for display. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Can I display a msg box after form has loaded?
    ... Are you using a continuous form and want to display a message when all the ... records have finished loading? ... Open and Load cause the message box to appear ... in VB that I could put in the Load event? ...
    (microsoft.public.access.gettingstarted)