Read the GDI+ FAQ on:
How to use CreateGraphics
How to respect event driven systems
How to create retained mode graphics displays
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
[quoted text, click to view] ohs wrote:
> I need to animate graphics over a large.jpg set as the forms background.
>
> Reloading the image each time the animation moves is not an option as it
> takes too long.
>
> I thought drawing on a transparent panel would be the answer indeed it works
> with a non transparent panel but not with a transparent one.
>
> The drawing code uses CreateGraphics in the mousemove event. With a the
> background color set to transparent the event isn't even triggered !?
>
> Also if i use graphics.clear(color.transparent) then panel turns black
>
> Any ideas ?
>