?
Solved

Animated GIFS in VB 5.0?

Posted on 1998-09-21
6
Medium Priority
?
234 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 80 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses

770 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