I'm trying to get the checked state of a treeListNode since Ranorex reports it as always False regardless of if it is checked or not.
Here is my object code.
Code: Select all
static object GetCheckState(System.Windows.Forms.Control control, object input)
{
DevExpress.XtraTreeList.Nodes.TreeListNode treeListNode = (control as DevExpress.XtraTreeList.Nodes.TreeListNode);
bool boolChecked = treeListNode.Checked;
return boolChecked;
}
Code: Select all
Cannot convert type 'System.Windows.Forms.Control' to 'DevExpress.XtraTreeList.Nodes.TreeListNode' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion
Thanks all!