RE: A puzzling problem with graphics painting and Alt-Tab
From: Ying-Shen Yu[MSFT] (v-yiy_at_online.microsoft.com)
Date: 07/20/04
- Next message: Dotnetjunky: "RE: Dim x as integer, x will return 0 when it have no filled?"
- Previous message: Joe: "Dim x as integer, x will return 0 when it have no filled?"
- In reply to: Tom Dacon: "A puzzling problem with graphics painting and Alt-Tab"
- Next in thread: Tom Dacon: "Re: A puzzling problem with graphics painting and Alt-Tab"
- Reply: Tom Dacon: "Re: A puzzling problem with graphics painting and Alt-Tab"
- Reply: Tom Dacon: "Re: A puzzling problem with graphics painting and Alt-Tab"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 20 Jul 2004 05:50:58 GMT
Hi Tom,
I did a quick test using the following code snippet. When running it on my
Windows XP system, I pressed alt-tab and hold down the alt key to keep the
switch window visible, the Timer event handler still updated the screen
properly.
<code>
Color[] clr = { Color.Red , Color.Pink,Color.Yellow,
Color.Green,Color.Purple, Color.Blue};
int idx = 0;
private void timer1_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
using (Graphics graphics = panel1.CreateGraphics())
{
Color c = clr [ idx++ % clr.Length ];
using (Brush brush = new SolidBrush( c ))
{
graphics.FillRectangle ( brush, panel1.ClientRectangle );
}
}
}
</code>
Could you make a simple program to reproduce this problem, so we can look
into it further.
Thanks!
Best regards,
Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.
- Next message: Dotnetjunky: "RE: Dim x as integer, x will return 0 when it have no filled?"
- Previous message: Joe: "Dim x as integer, x will return 0 when it have no filled?"
- In reply to: Tom Dacon: "A puzzling problem with graphics painting and Alt-Tab"
- Next in thread: Tom Dacon: "Re: A puzzling problem with graphics painting and Alt-Tab"
- Reply: Tom Dacon: "Re: A puzzling problem with graphics painting and Alt-Tab"
- Reply: Tom Dacon: "Re: A puzzling problem with graphics painting and Alt-Tab"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|