Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: TriCk on August 20, 2003, 06:59 AM

Title: PictureBox
Post by: TriCk on August 20, 2003, 06:59 AM
Language: VB6

Ok here's my problem
I have a skin thing happening, the only part i am having trouble with is loading a "gif"/"bmp" into a picturebox on a form.

To elaborate, i have a file located in:
App.Path & "\skins\" & SkinName & "\main_bottom.bmp"

I've tried various ways to try and load it, first off i tried the most obvious "Picturebox1.Picture = App.Path & "\skins\" & SkinName & "\main_bottom.bmp""

Then tried to do it with ImageList's all were insuccessful, so any help would be very much appreciated!

Thanks
-TriCk
Title: Re:PictureBox
Post by: K on August 20, 2003, 08:28 AM
You were close.

Picturebox1.Picture = LoadPicture(App.Path & "\skins\" & SkinName & "\main_bottom.bmp")

Title: Re:PictureBox
Post by: TriCk on August 20, 2003, 04:54 PM
Thanks ;D