Error when trying to Find a form in VS2008 with C#
Posted: Thu Feb 26, 2009 10:45 pm
This command works:
But I want to use the Timeout ability of Find since FindChild does not have a Timeout ability.
This command results in the error:
"Cannot implicitly convert type 'System.Collections.Generic.IList<Ranorex.Form>' to 'Ranorex.Form'. An explicit conversion exists (are you missing a cast?)"
What am I doing wrong here?
Thanks...
Code: Select all
Ranorex.Form HDForm = Host.Local.FindChild<Ranorex.Form>(WindowName);
This command results in the error:
"Cannot implicitly convert type 'System.Collections.Generic.IList<Ranorex.Form>' to 'Ranorex.Form'. An explicit conversion exists (are you missing a cast?)"
Code: Select all
Ranorex.Form HDForm = Host.Local.Find<Ranorex.Form>(WindowName);
Thanks...