Alright, I'm working on a project for class that I need to use both .gifs and .wavs. I've gotten the .wavs to work, but some of the gifs bring up a GDI+ error when I run the program. Here's the error message...
An unhandled exception of type 'System.Runtime .InteropService s.ExternalExcep tion' occurred in system.windows. forms.dll
Additional information: A generic error occurred in GDI+.
Here's a part of the code that's giving me a problem.
Private Sub lblThirstMagic_ Click(ByVal sender As Object, ByVal e As System.EventArg s) Handles lblThirstMagic. Click
' This plays an audio clip and changes the picturebox to the proper .GIF.
' Audio Clip Used: ThirstMagic.wav
' Animation Used: ThirstMagicAnim .gif
gintCurrentLeng th = 3
gstrCurrentAnim = "ThirstMagi c"
tmrStopAnimatio n.Enabled = True
wmPlayer.URL = "ThirstMagic.wa v"
pbxAnimation.Im age = System.Drawing. Image.FromFile( "ThirstMagicAni m.gif")
End Sub
I know the line that's giving me trouble; it's the pbxAnimation part. The problem is, I don't know WHY it's doing it. Any help would be GREATLY appreciated. I'm running on VB.NET 2003.
An unhandled exception of type 'System.Runtime .InteropService s.ExternalExcep tion' occurred in system.windows. forms.dll
Additional information: A generic error occurred in GDI+.
Here's a part of the code that's giving me a problem.
Private Sub lblThirstMagic_ Click(ByVal sender As Object, ByVal e As System.EventArg s) Handles lblThirstMagic. Click
' This plays an audio clip and changes the picturebox to the proper .GIF.
' Audio Clip Used: ThirstMagic.wav
' Animation Used: ThirstMagicAnim .gif
gintCurrentLeng th = 3
gstrCurrentAnim = "ThirstMagi c"
tmrStopAnimatio n.Enabled = True
wmPlayer.URL = "ThirstMagic.wa v"
pbxAnimation.Im age = System.Drawing. Image.FromFile( "ThirstMagicAni m.gif")
End Sub
I know the line that's giving me trouble; it's the pbxAnimation part. The problem is, I don't know WHY it's doing it. Any help would be GREATLY appreciated. I'm running on VB.NET 2003.