Advertisement
Java_Volume1 Graphics #93673

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.

AI

Riepilogo AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Codice sorgente
original-source
WebBrowser1.Navigate "about:<html><body scroll='no'><BODY TOPMARGIN='0' 
LEFTMARGIN='0' MARGINWIDTH='0' MARGINHEIGHT='0'&gt;&lt;img scr='LOCATION OF GIF'&gt;&lt;/img&gt;&lt;/body&gt;&lt;/html&gt;&quot;</p>
Commenti originali (3)
Recuperato da Wayback Machine