how to get the open windows using ranorex

Ask general questions here.
sunitha
Posts: 24
Joined: Thu May 14, 2009 2:06 pm

how to get the open windows using ranorex

Post by sunitha » Sat May 30, 2009 1:37 pm

i want to get all active forms in Os & activate mine from them..

How can i get them?

User avatar
Ciege
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Post by Ciege » Mon Jun 01, 2009 4:07 pm

If you don't know the name of the form you want to activate you can try this to get all open forms and iterate through them:

Code: Select all

IList<Ranorex.Form> allForms = Host.Local.FindChildren<Ranorex.Form>();
foreach (Ranorex.Form HDForm in allForms)

User avatar
Ciege
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Post by Ciege » Mon Jun 01, 2009 6:28 pm

Just a follow-up... You should probably post questions like this in the General Questions forum and not the Bug Reports forum...