null value in treeview

Ask general questions here.
Posts: 5
Joined: Tue Mar 10, 2009 6:42 pm

null value in treeview

Post by conanlive » Thu Jun 25, 2009 9:03 am

TreeView treeView = form.FindTreeView("treeView1");

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: null value in treeview

Post by Support Team » Thu Jun 25, 2009 11:04 am

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.

Ranorex Support Team