Author: jackson
Date: 2005-10-10 14:01:47 -0400 (Mon, 10 Oct 2005)
New Revision: 51527
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
Log:
* Form.cs: Use the property to get the window handle instead of
accessing it directly. Prevents a null reference exception.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-10-10 17:34:57 UTC (rev 51526)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-10-10 18:01:47 UTC (rev 51527)
@@ -1,5 +1,10 @@
2005-10-10 Jackson Harper <[EMAIL PROTECTED]>
+ * Form.cs: Use the property to get the window handle instead of
+ accessing it directly. Prevents a null reference exception.
+
+2005-10-10 Jackson Harper <[EMAIL PROTECTED]>
+
* TreeView.cs: Don't adjust the rect given to DrawString now that
our libgdiplus draws correctly.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
2005-10-10 17:34:57 UTC (rev 51526)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
2005-10-10 18:01:47 UTC (rev 51527)
@@ -727,11 +727,11 @@
[DefaultValue(FormWindowState.Normal)]
public FormWindowState WindowState {
get {
- return XplatUI.GetWindowState(window.Handle);
+ return XplatUI.GetWindowState(Handle);
}
set {
- XplatUI.SetWindowState(window.Handle, value);
+ XplatUI.SetWindowState(Handle, value);
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches