Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Re: How to make a animated picture in a VB form ?


Message #1 by "David Houston" <davehhouston@m...> on Sat, 19 Oct 2002 11:50:49
> >           I know to make a picture in a form, I can use the control
> > 'Image' and 'Picture'. However, the picture or image in these 
controls
> are
> > static pictures. Very often I can find animated pictures (I guess 
they
> are
> > in gif format) in many applications that impress me very much. So, 
which
> > control in VB is available for me to make an animated picture so as 
to
> > make the form interesting ?
> >
> > Many thanks and best regards
>

A Gif-animation need some sort of container to work properly,
it will work nicely on a web-page for example. I guess you would
need som sort of thirdparty-control to show a gif in a form. An it
will make things more complicated, one more thing that can go wrong!
This is the catch really, is it worth to take the risk of problems just
to get that little moving thing?

Nowadays there are better support for DirectX an VB which would make
it possible to make nice animations. But as many users of VB-programs 
are
on restrricted systems, not allowed to have to much fancy things on 
their
computers, this may cause problems to install your program.

The sound solution as I see it is to use the old GDI which works on
every windows system since 95 and will cause no problems. There
are many code samples around the internet on how to implement it
As a hint I also want to recommend to use a double-buffer to get
flickerfree animation.



aake forsmark


  Return to Index