VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Best AND easiest way to display an Animated GIF in ONE LINE OF CODE

by Andrew Christiansen (3 Submissions)
Category: Graphics
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (5 Votes)

OK well all know that the webbrowser control can display animated GIFs? But you really dont want to use that because of that ugly scrollbar on the side, or what about the top and left margins? This gets rid of those 3 annoying things. What you are doing in this is typing direct HTML into the webbrowser control, instead of directly pointing it to the image. With this you can set margins or scrollbar visability.

Assumes
Just add the Microsoft Internet Controls component.

Rate Best AND easiest way to display an Animated GIF in ONE LINE OF CODE

WebBrowser1.Navigate "about:<html><body scroll='no'><BODY TOPMARGIN='0' 
LEFTMARGIN='0' MARGINWIDTH='0' MARGINHEIGHT='0'><img scr='LOCATION OF GIF'></img></body></html>"

Download this snippet    Add to My Saved Code

Best AND easiest way to display an Animated GIF in ONE LINE OF CODE Comments

No comments have been posted about Best AND easiest way to display an Animated GIF in ONE LINE OF CODE. Why not be the first to post a comment about Best AND easiest way to display an Animated GIF in ONE LINE OF CODE.

Post your comment

Subject:
Message:
0/1000 characters