473,326 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Animated Graphics

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
Nov 21 '05 #1
3 955
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
Nov 21 '05 #2
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

"Cor Ligthert" <no************@planet.nl> wrote in message
news:et**************@TK2MSFTNGP15.phx.gbl...
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

Nov 21 '05 #3
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!

"Peter Proost" <pp*****@nospam.hotmail.com> wrote in message
news:uv**************@TK2MSFTNGP12.phx.gbl...
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

"Cor Ligthert" <no************@planet.nl> wrote in message
news:et**************@TK2MSFTNGP15.phx.gbl...
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


Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: JW | last post by:
Hi, I am trying to see if I can display an animated .gif file on a Java application (that is, I do not want to have to show a series of static images to simulate animateion; I just want to...
9
by: John J. Hughes II | last post by:
Is it possible using Image or Bitmap to build and save an animated GIF file? I am not have a problem saving the GIF file just getting the frames added to it. I did find ImageAnimator but it only...
2
by: ck388 | last post by:
I was wondering if anyone could answer a couple of questions regarding developing games. I would like to create one for fun on my spare time. I want to know what type of technologies I would have...
2
by: מירי | last post by:
I would like to make a program that puts an icon into the desk tray and when relevant changes it to an animated icon (much like the internet connection icon). Before I start playing around with...
10
by: Liz | last post by:
All: Can anyone tell me why my animated GIF does not show up as animated when put into a pictureBox?? Thanks. Liz
0
by: Al_C | last post by:
Time for me to put a little back here. Been working a project for a while, and a big part of it is graphics and animation. Here's a few tips. Create a picturebox in your form. In the software...
4
by: Lando | last post by:
Can javascript build animated .gif or .jpeg ....I mean files *gif or *.jpeg that show animated images when are opened ( or is it another language that do it ? ) ? Thanks a lot.
27
by: Phil | last post by:
I thought it would be nice to display some animated GIFs on some of my forms. I put a PictureBox control on a form, and loaded my GIF file in. It animates, but not properly. It seems very jerky and...
1
by: NickP | last post by:
Hi there, I've made a few animated controls but would like to check on the correct procedure for doing so as unfortunately every now and then, without warning, I recieve a GDI+ Exception stating...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.