Page 1 of 1

null value in treeview

Posted: Thu Jun 25, 2009 9:03 am
by conanlive
TreeView treeView = form.FindTreeView("treeView1");

Why i get treeView value as null?? The tree view control name is called as "treeView1". Thanks.

Re: null value in treeview

Posted: Thu Jun 25, 2009 11:04 am
by Support Team
Which version of Ranorex 1.X do you use? Please always post the Ranorex version you use!

Do you have this problem with that treeView1 only or with other controls as well? The FindTreeView method may return null for 3rd party treeview controls. Please try to use the FindControlName method instead.

Regards,
Alex
Ranorex Support Team