Wrox Home  
Search P2P Archive for: Go

  Return to Index  

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


Message #1 by "Raymond Lo" <ytlo@n...> on Mon, 4 Dec 2000 10:28:00 -0000
Hello Raymond

To the best of my knowledge there is no such control in Visual Basic 6.0 (I
would welcome comments if I am wrong!)

What I do to achieve this functionality is use the image list control and
loop through the image list using a timer control to display the 'next'
picture every X millisecond.

Of course this is not really ideal as using the Timer in this way will eat
at a PC's resources - but I only use 'animated' gifs in splash screens and
the like (where they are only displayed for a short period of time) and have
found this to be a very effective way of achieving this.

If you require some sample code, then please e-mail me and I shall dig out
some existing code that I have used to do this.

Regards

Colin Gourlay
CG Systems

http://www.cgsystems.org.uk


-----Original Message-----
From: Raymond Lo [mailto:ytlo@n...]
Sent: 04 December 2000 10:28
To: professional vb
Subject: [pro_vb] How to make a animated picture in a VB form ?

Dear Sir,
          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


  Return to Index