I am working on a project in my computer progamming class and I want to put GIFs on the forms. What is the code or the procedure to get them to animate correctly?
Printable View
I am working on a project in my computer progamming class and I want to put GIFs on the forms. What is the code or the procedure to get them to animate correctly?
Do you mean a VB form?
if so, the easiest way is to use a webbrowser control and:
Code:
Private Sub Form_Load()
dim Filename as string
filename = "whatever.gif"
WebBrowser1.Navigate FileName
End Sub
How do you use or open a Web Browser Control?
Go to Project > Custom Controls > and make sure Microsoft Internet Controls is checked and then press OK.