Animated Graphics

D

David Angelovich

Hi

What's the best way to do animated graphics in VB.NET?

I need to make a white square bounce around the screen...
I was thinking of drawing the square then using a timer to redraw 30 times
per second, then moving the square on each redraw...

Is there a better way though...? I'm looking for a way that won't flicker...

Thanks,

- David Angelovich
 
C

Cor Ligthert

David,

When i was you I would ask this in the small however active newsgroup

microsoft.public.dotnet.framework.drawings

I hope this helps?

Cor
 
P

Peter Proost

This will make the flickering less, place it inside your forms public sub
new()

Me.SetStyle(ControlStyles.AllPaintingInWmPaint Or ControlStyles.UserPaint Or
_ ControlStyles.DoubleBuffer, True)

hth
Peter
 
D

David Angelovich

I haven't tried it with animation yet, but that solves one of my other
problems where the screen was redrawing for no reason after the form
opened....

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top