[Gambas-user] Fit Form to PictureBox

Tobias Boege taboege at ...626...
Wed Dec 31 01:25:30 CET 2014


Hi,

I'm trying to have FMain automatically adjust its size according to its sole
(for demonstration) child control PictureBox1. The PictureBox1 itself is
AutoResize = True and gets a big Picture. (Attached is a little project.)

What happens is that PictureBox1 resizes accordingly, so I thought I set
FMain.AutoResize = True but FMain does not react to the growing PictureBox1.
The interplay between AutoResize, Expand, the parent's Arrangement and a
PictureBox' Stretch has always been obscure to me. Does anyone have a
solution?

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: form-autoresize-picturebox-0.0.1.tar.gz
Type: application/octet-stream
Size: 3905 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20141231/29770cd1/attachment.obj>


More information about the User mailing list