04-23-2002, 11:38 PM
Hello fellow developers, been a long time since i was regular on this forum. I have a question....I want to use a nice interface to use with the visual basic applicvation..i don't want that old fashioned windows look....now if i give the form an image is there a way that the image stays like that when i maximize or change the size of the form window. Thanks in advance........I know this forum won't let me down.:)
04-23-2002, 11:55 PM
Place an ImageBox(The Picture of a hill) on the Form
Private Sub Form_Load()
Image1.Picture=Loadpicture(App.Path & "\MyPic.bmp")
Private Sub Form_Resize()
This is the most simplistic way without using APIs
04-24-2002, 12:12 AM
That is fine. Now i have a very complex design and I am not using a single imagebox to put up all the images, infact there are many of those. I need to change pictures in all of those boxs.Thanks again for the reply.
04-24-2002, 12:14 AM
You need to calculate size of pictureboxes according to the size of the form to make them resize dynamically
04-24-2002, 12:34 AM
Thanks for the reply. I will try that out and lets see how that figures.
04-24-2002, 05:54 AM
Just as a suggestion, you might try checking out these two tutorials on EliteVB:
Texturizing a form (http://www.elitevb.com/show.asp?id=1) (could be modified for pictures) Custom Regions (http://www.elitevb.com/show.asp?id=1d1) (could fit your form to the pictures)
04-26-2002, 01:03 PM
I might be missing something here, but why not just make an image box the size of the form?
04-27-2002, 02:41 AM
It was suggested above, but as hand pointed out, the correct way (imo) to do UI improvemenmt is via the methods demonstrated on his site. (www.elitevb.com). Stretching a picturebox across the form isn't very flexible, and is, well.... IMO, wrong. :p