2007-03-19 Chris Toshok <toshok@ximian.com>
commit734bc4100238a2fdd5034450e3e1f233702125e6
authortoshok <toshok@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Mon, 19 Mar 2007 21:17:23 +0000 (19 21:17 +0000)
committertoshok <toshok@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Mon, 19 Mar 2007 21:17:23 +0000 (19 21:17 +0000)
tree6cfc72d3c3aa83a8ee903cd01eec9c416a23abfb
parent6a980ae1c5ff4a4b82d13826cca5befde8036626
2007-03-19  Chris Toshok  <toshok@ximian.com>

* ScrollableControl.cs: create the controls from within the ctor,
but don't actually add them until our handle is created.  this
fixes a NRE possibility jpobst found (if you override OnLayout in
a subclass, it's called before your ctor).  Also, add a
IsHandleCreated guard to UpdateSizeGripVisibility as well.

git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@74638 e3ebcda4-bce8-0310-ba0a-eca2169e7518
class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs