Re: Window Flashing !!!

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Paul Loveless (paull2_at_rogers.com)
Date: 06/29/04


Date: Tue, 29 Jun 2004 17:11:11 GMT

Form is modal; displayed as: form.ShowDialog(this);

As I mentioned in my earlier msg, I'm hiding the form when you click a
button, not closing it. While dicking around some more, I found that if I
use the Form.Close() method instead, it eliminates the flashing. However,
that raises another point. Doesn't calling Close() destroy the form object
(or at least prepare it for garbage collection)?

Paul

"John Wood" <j@ro.com> wrote in message
news:u1hZHYfXEHA.3188@TK2MSFTNGP09.phx.gbl...
> Couple of questions:
> 1. Are you displaying the form modal or modelessly?
> 2. Are you passing in the main form as the owner window when you show the
> fom?
>
> --
> John Wood
> EMail: first name, dot, last name, at priorganize.com
> "Paul Loveless" <paull2@rogers.com> wrote in message
> news:qAgEc.529$jor.395@news04.bloor.is.net.cable.rogers.com...
> > Hi all. I've noticed in my dot net program when the main program window
is
> > maximized, and I close an open form (well technically I hide it) that I
> have
> > displayed in the main window, that the main window will occasionally
flash
> > momentarily, displaying another open program. It is like windows xp is
> doing
> > a context switch with another open program, momentarily making it the
> active
> > window and then quickly switching back to my program. On a fast
computer,
> > the flash is very quick and hardly noticeable, but on a slower computer,
> it
> > is quite noticeable. However, when I close a message box displayed in
the
> > main window, the flash never occurs.
> >
> > I've also noticed that other non-dot net programs don't seem to do this.
> So,
> > what causes this? Is it the dot net runtime environment, is my program's
> > time slice up causing the os to perform a context switch (which I doubt)
> or
> > is it something else?
> >
> > I'm curious to know if anyone knows why this happens and if there is a
way
> > to stop it from occurring. Thanks in advance to any replies.
> >
> > Paul
> >
> >
>
>



Relevant Pages

  • Re: Window Flashing !!!
    ... I've noticed in my dot net program when the main program window is ... > displayed in the main window, that the main window will occasionally flash ... > momentarily, displaying another open program. ... > time slice up causing the os to perform a context switch ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: There is no .NET in Vista Code?
    ... Just for the fun of it I tried dragging a window ... same when displaying a graphic but very little when displaying text. ... I just don't like the fact that people get lazy and say, ... they'll just have to have a faster CPU because we don't want to ...
    (borland.public.delphi.non-technical)
  • Re: Debugging unusable in SP1
    ... If it does not, then the issue will be the Autos window when it's displaying your program, and I'd look for a recursive property or something like that. ... the tabs select. ...
    (microsoft.public.vstudio.general)
  • Re: Direct access to the frame of a form
    ... maximize button from displaying? ... of the window, and I don't believe .NET gives you any direct way to do this. ... preference and should NOT be messed with for no good reason. ... Thought it would be easiest to just override the frame. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Cant format (erase) hard drive
    ... > well with the new C drive, I tried to format the old drive E. I ... > window is displaying the contents of the drive. ... > program or disk utility could be open since I would not have changed the ...
    (microsoft.public.windowsxp.hardware)