Best AND easiest way to display an Animated GIF in ONE LINE OF CODE
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.
Original Author: Andrew Christiansen
Assumptions
Just add the Microsoft Internet Controls component.
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>"
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.