Picturebox to fit the Form
hi,
How can I have the form to be loaded so it can fit the picturebox?
what I have: a picturebbox inside a form and it's loaded with a picture, but when the form is loaded the form is smaller that the picture, and that's not I need to do. I want the picturebox to fit the form.
Thank you,
:)
[317 byte] By [
moe188] at [2007-11-11 11:59:05]

# 1 Re: Picturebox to fit the Form
I'm confused.
You have a form.
You have a picturebox on the form.
The picturebox has a picture.
How can a container, like a form, be smaller than a child container like picture box? :confused:
Could you post a screen shot of what you are seeing?
Hack at 2007-11-11 17:20:51 >

# 2 Re: Picturebox to fit the Form
the form is not smaller, I want the form to be loaded with the same size as the picturebox (height, width)
moe188 at 2007-11-11 17:21:52 >

# 3 Re: Picturebox to fit the Form
form.width = pictrure.width
from.height = picture.height
...
Amahdy at 2007-11-11 17:22:50 >
