CreateGraphics is one of four methods you're allowed to call on a control
from another thread (Invoke, BeginInvoke and EndInvoke are the other three).
You lucked out. : )

Chris

----- Original Message -----
From: "Jeff Roberts" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 29, 2002 8:04 AM
Subject: Re: [DOTNET] Modeless WinForms Bug


I created the form from my main form and called Show() from the Timer event.
By the way I have a lot of code that uses the GUI from a System.Timer event.
When I get the event, I create a Graphics object for the from and draw it
without any problems !

jeff

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to