Debug - Split a line into multiple lines to determine the cause of an error.
Debug - Added logic so that focus is not given to an object that is being disposed.
This commit is contained in:
@@ -2161,8 +2161,16 @@ namespace Volian.Controls.Library
|
||||
/// </summary>
|
||||
public void ItemSelect()
|
||||
{
|
||||
_MyStepRTB.Focus();
|
||||
_MyStepRTB.Select(0, 0);
|
||||
// Was getting an Error that _MyStepRTB was Disposed RHM 20101217
|
||||
if (!_MyStepRTB.Disposing)
|
||||
{
|
||||
_MyStepRTB.Focus();
|
||||
_MyStepRTB.Select(0, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
_MyLog.WarnFormat("Attempt to give Focus to Disposed Object {0}", MyID);
|
||||
}
|
||||
// if (CanExpand) AutoExpand(); // Expand the item if you can
|
||||
ScrollToCenter();
|
||||
}
|
||||
|
Reference in New Issue
Block a user