Author: jackson
Date: 2007-03-14 16:15:47 -0500 (Wed, 14 Mar 2007)
New Revision: 74306
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeNode.cs
Log:
Only returns true after the handle has been created.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeNode.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeNode.cs
2007-03-14 21:13:12 UTC (rev 74305)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeNode.cs
2007-03-14 21:15:47 UTC (rev 74306)
@@ -363,7 +363,7 @@
public bool IsSelected {
get {
- if (TreeView == null)
+ if (TreeView == null ||
!TreeView.IsHandleCreated)
return false;
return TreeView.SelectedNode == this;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches