Re: Window Flashing !!!
From: Paul Loveless (paull2_at_rogers.com)
Date: 06/29/04
- Next message: Eric Johannsen: "Re: Creating simple Excel file"
- Previous message: John J. Hughes II: "Re: Listening to a port via a DSL router/modem"
- In reply to: John Wood: "Re: Window Flashing !!!"
- Next in thread: John Wood: "Re: Window Flashing !!!"
- Reply: John Wood: "Re: Window Flashing !!!"
- Messages sorted by: [ date ] [ thread ]
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
> >
> >
>
>
- Next message: Eric Johannsen: "Re: Creating simple Excel file"
- Previous message: John J. Hughes II: "Re: Listening to a port via a DSL router/modem"
- In reply to: John Wood: "Re: Window Flashing !!!"
- Next in thread: John Wood: "Re: Window Flashing !!!"
- Reply: John Wood: "Re: Window Flashing !!!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|