[Mono-list] Bad Mono 2.4.2.1 / 2.2 using "OnLoad"

Chris Howie cdhowie at gmail.com
Wed Jul 8 18:11:17 EDT 2009


On Wed, Jul 8, 2009 at 5:02 PM, LKeene<lionel.keene at gmail.com> wrote:
> Hi folks,
>
> I just got around to installing v2.4.2.1 of Mono on my XP box today.
> Previously I had been using 2.2. I'm developing my app in VS2008 and
> checking it periodically by running debug/release builds under both
> Microsoft and Mono runtimes.
>
> In my app I control the size and layout of controls by first querying the
> MainForm for the client size. The MainForm is default Maximized when app is
> run. Everything is based on this...the layout, the gdi+ drawing, etc. I've
> been doing all of my initial control sizing and layout in the MainForm
> constructor and so far this has worked well. Recently, I moved all the
> layout/sizing code to "MainForm.OnLoad()", and the layout/sizing is all
> wrong. It seems the controls are being sized prior to the MainForm being
> maximized to fill the monitor. This occurs in both 2.2 / 2.4.2.1 versions of
> Mono. It works just fine in Microsoft's runtime, however (both the "OnLoad"
> layout and the constructor layout versions).
>
> Is the constructor indeed the correct location for this control
> layout/sizing? If not, where?

OnResize seems like a logical place for this to go.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Mono-list mailing list