17-12-2007, 08:22 PM
You load it into the form picture here:
And here you try to get the width from something that doesn't exist:
This part doesn't exist. you cant have picture.width. It should be curForm.Width, in that case. But that wont work for you either.
Code:
curForm.Picture = LoadPicture(App.Path & GFX_GUI & locGUI)
And here you try to get the width from something that doesn't exist:
Code:
curForm.Width = curForm.Picture.Width
curForm.Height = curForm.Picture.Height
This part doesn't exist. you cant have picture.width. It should be curForm.Width, in that case. But that wont work for you either.
Code:
curForm.Picture.Width