[Gambas-user] Fit Form to PictureBox

Gian bagoneo at ...69...
Wed Dec 31 13:43:11 CET 2014


Il 31/12/2014 01:25, Tobias Boege ha scritto:
> 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
>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
>
>
>
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

Tobia,
I'm embarrassed to answer, you are a guru and surely you know this:
  Picture PictureBox1.Picture = ["icon: / 96 / access"]
  Me.H = PictureBox1.H
  Me.W = PictureBox1.W
because it does not satisfy you?
Hello
Gianluigi







More information about the User mailing list