parent use this instead of ctrl.parent so that null can be
passed
to SelectNextControl. (I have unit tests for this).
- Remove unused var.
svn path=/trunk/mcs/; revision=62389
+2006-07-10 Jackson Harper <jackson@ximian.com>
+
+ * Control.cs (SelectNextControl): When checking the control's
+ parent use this instead of ctrl.parent so that null can be passed
+ to SelectNextControl. (I have unit tests for this).
+ - Remove unused var.
+
2006-07-07 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Don't use brackets for new folders if they exist
}
internal bool Select(Control control) {
- Control parent;
IContainerControl container;
if (control == null) {
return false;
}
- parent = control.parent;
-
control.is_selected = true;
container = GetContainerControl();
break;
}
- if (c.CanSelect && ((c.parent == ctl.parent) || nested) && (c.tab_stop || !tabStopOnly)) {
+ if (c.CanSelect && ((c.parent == this) || nested) && (c.tab_stop || !tabStopOnly)) {
Select(c);
return true;
}