RE: A puzzling problem with graphics painting and Alt-Tab

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

From: Ying-Shen Yu[MSFT] (v-yiy_at_online.microsoft.com)
Date: 07/20/04


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.



Relevant Pages

  • Re: Grisoft AVG and Email
    ... especially if downloading new mail or sending mail in OE continues ... As long as your virus definitions are kept up-to-date and AVG's realtime ... >> Windows version? ... >> Did you uninstall VirusScan before installing AVG? ...
    (microsoft.public.security)
  • RE: Tablestyle.Add too slow...
    ... To begin investigating this issue, I'd first like to get a timing result of ... this code snippet. ... timing result if you bound the datagrid and set tablestyle in seperate ... before sending mail. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: click event awareness in contacts form
    ... unfortunately I haven“t a code snippet for you. ... With this tool you can easily check the windows hierarchy of any ... "Vandana" wrote in message ... >> Michael Bauer ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: A puzzling problem with graphics painting and Alt-Tab
    ... Thanks for the code snippet. ... Both these things need to happen for it to fail. ... Once both those things have been done, my test app fails during the Alt-Tab ... > Windows XP system, I pressed alt-tab and hold down the alt key to keep the ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Contacts but no address book again
    ... Contacts imported from WIndows Mail after importing from OE6 into WM ... When sending mail clicking "TO" autocomplete does work, ... Contacts folder properties window has greyed, ...
    (microsoft.public.outlook.contacts)