Drawing Animation and Graphic

mjsg

New member
Joined
Sep 19, 2003
Messages
2
Dear All,

I am a newbie to VB.NET. I need to develop a an application to simulate the movement of cars in a road network system which requires the use of animation and moving graphics and also the ability to zoom in and out, pan and rotate and perhaps in 3D mode as well as 2D mode.

At the moment, I have no idea how all of these would be done, I mean do I just use a standard form as my background and start drawing the animation on the form or what. Could someone please point me to the right direction, not necessary to complete the required tasks but at least where I can do some more research and reading.

Any help and/or suggestion would be greatly appreciated.

TIA
mjsg
 
Yes, use the Form itself or your own custom control as a drawing surface.

For either instance, override OnPaint

protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
}

and do your painting there calling Invalidate to run the code in OnPaint and refresh the Form.

Also, look up DoubleBuffer, there are many threads here about it.
 
Back
Top