English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Im just a beginner in this visual basic 6.0. My problem is, the gif image doesnt move when I upload a picture. My teacher told me that it should work because he had done it before..He just forgot how to make it operate. How do you make the gif image work?

2006-08-08 13:16:47 · 3 answers · asked by Jed Stephen 3 in Computers & Internet Programming & Design

3 answers

You may find this interesting: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=44216&lngWId=1

If you think that saved your day, please vote for me.

2006-08-08 14:50:31 · answer #1 · answered by mods_3 2 · 0 0

Some options

1.) If you want to show an animated gif, like in Internet Explorer, then host Internet Explorer in your application. Instead of using a picture box, use an html browser control and navigate to a file (the .gif file) on the file system

2.) While the Picture ActiveX control offers a great way to display
graphics, it only shows the first image in an animated GIF. To
display a fully animated GIF, without rebuilding the entire graphic
frame by frame, you can use the WebBrowser control (just keep in
mind that this control isn't available to machines without IE 3.0
or greater). To do so, select the Microsoft Internet Controls
component. When you do, the WebBrowser control appears on Visual
Basic's toolbar. Drop the control onto a form, then in the form's
Load() event place the following code:

WebBrowser1.Navigate "C:\Internet\anim.gif"

Where the filespec points to a valid animated GIF path or URL. When
you run the program, Visual Basic displays the GIF.

Unfortunately, the WebBrowser also displays a right-hand scroll
bar--probably not what you want for a decorative image. Believe it
or not, you can turn this scrollbar off just like you would normally
via HTML, as in:

WebBrowser1.Navigate "about: src='D:\Internet\anim.gif'>"

Now when you run the form, Visual Basic displays the image sans
scrollbar.

2006-08-08 16:08:50 · answer #2 · answered by cmr 3 · 0 0

visible elementary specific is not their simplest product. Microsoft has lots of goods that cause them to monstrous quantities of cash. So they are able to manage to pay for to provide out a couple of unfastened merchandise to folks.

2016-08-28 10:39:00 · answer #3 · answered by dassler 4 · 0 0

fedest.com, questions and answers