Solved

Animated GIFS in VB 5.0?

Posted on 1998-09-21
6
229 Views
Last Modified: 2010-04-30
Is it possible to place an animated GIF on a vb form and have it play, as if it was in a browser? And after making it an .EXE file will it still be animated?

Thank you much,
StupidStudent
0
Comment
Question by:stupidstudent
  • 4
  • 2
6 Comments
 
LVL 8

Expert Comment

by:Answers2000
ID: 1435774
The easiest way to do this is to place a IE web browser control on your form (SHDOCVW.DLL).

1. Bring up your form
2. Make sure WebBrowser is visible on the toolbar (it's a kinda world icon).  If not right click on the toolbar and make sure "Microsoft Internet Controls" is checked
3. In your code navigate to the GIF (it can be your local disk or the internet).  example:
Private Sub Command1_Click()
WebBrowser1.Navigate "c:\myimage.gif"
End Sub

It will animate.
It will also allow browsing to internet based graphics, jpgs and html etc.
0
 

Author Comment

by:stupidstudent
ID: 1435775
Hello Answers2000,

I still don't understand how to do it.  I am new to VB 5.0
I am currently running VB 5.0 Professional Edition.   Please help me further, and I apologize for any inconveniences...

Thank you kindly,
StupidStudent
0
 

Author Comment

by:stupidstudent
ID: 1435776
Adjusted points to 20
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:stupidstudent
ID: 1435777
Please clarify Answers2000.  I know that you can have a third party software (http://www.jcomsoft.com/) to do this but are there codes to do this?

Thanx.
0
 
LVL 8

Accepted Solution

by:
Answers2000 earned 20 total points
ID: 1435778
1. You must have Internet Explorer 3 or 4 installed.

2. Right click on the toolbar which has all the controls (edit, text boxes, picture boxes etc)

It'll bring up a dialog box on this dialog will be a long list of items with check boxes to the left of each.  Make sure "Microsoft Internet Controls" check box is ticked, and press OK.

3. You tool bar should now contain an icon which looks like a globe of earth.  Move the mouse over, and the tool tip should say "WebBrowser"

4. Click on WebBrowser icon

5. Drag out an area on your VB form.  It will appear gray like a "hole" in your form.

6. Add a push button to your form

7. Double click on the button, you should see code like

Private Sub Command1_Click()
End Sub

8. Edit this code to look like

Private Sub Command1_Click()
WebBrowser1.Navigate "c:\myimage.gif"
End Sub

9. This assumes your GIF file is called "C:\MYIMAGE.GIF"

I don't know what else to explain, you'll have to explain what your having difficulties with if this don't make sense.
0
 

Author Comment

by:stupidstudent
ID: 1435779
Thank you Answer2000, you have make it very clear for me.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

822 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question