I've searched through these forums for about a week and I have not been able to find anything about this.

I've got a Image that loads with the path App.Path & "open.bmp"

The picture loads find into the Image control. Now I want to test the path of the Image when I click on it. If the path is open.bmp, I want it to change to closed.bmp. When I run the code below, it errs at the If statement, stating a Type Mismatch. It is probably something simple that I am missing.

If imgLight(Index).Picture = App.Path & "open.bmp" Then
imgLight(Index).Picture = LoadPicture("closed.bmp")
End if


Any help is appreciated, its been bugging me for a while now.