VB LoadPicture()
Hello, im attempting to change an image in a picture box in vb, however im a four dimensional array to store the image number (in this case the number is 1, and that works correctly, have debugged it.) and then the file extension (.gif) would be tagged on to the end. however for some reason it is giving me an error, saying "type mismatch". this is gunna be a stupid error on my part, but im just too tired to figure it out. so thnx for the help. heres the line thats causing my problem:
Tiles(q - 1 + a - 1).Picture = LoadPicture(App.Path + "\tiles\" + TileNum(q - 1, a - 1, worldx, worldy) + ".gif")
Thanks in advance for the help, its much appreciated
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement