| View previous topic :: View next topic |
| Author |
Message |
CookieMonster
Joined: 14 Aug 2006 Posts: 6
|
Posted: Wed Aug 16, 2006 8:41 am Post subject: Recognition of the Class Name |
|
I made an application in VS2005 to test ranorex, for e.g I couldn't use the Form.FindClassName("Form1") I hade to use Form.FindClassName("WindowsForms10.Window.8.app.0.378734a"). Is there a possibility to make the class name visible?
Thanks
Dan |
|
| Back to top |
|
 |
admin Site Admin
Joined: 05 Jul 2006 Posts: 351
|
|
| Back to top |
|
 |
puyopuy
Joined: 26 Jul 2007 Posts: 2
|
Posted: Thu Jul 26, 2007 8:02 am Post subject: |
|
Hi admin,
I'm developing a new application using .NET what property should I use for identifier? My new application will support multiple languages, so I cannot use Form Title as identifier?
Thanks
Jeff |
|
| Back to top |
|
 |
admin Site Admin
Joined: 05 Jul 2006 Posts: 351
|
Posted: Thu Jul 26, 2007 7:02 pm Post subject: |
|
| Quote: |
| ...what property should I use for identifier? |
You can use the Name of the Form, we have no Application.FormFindName at the moment, but you can find the Form by Name easily as follows:
Code: click into code to enlarge
foreach (Form form in Application.Forms)
{
if (form.Name == "SearchedForm" )
{
form.Activate();
break;
}
}
Jenö
Ranorex Team |
|
| Back to top |
|
 |
puyopuy
Joined: 26 Jul 2007 Posts: 2
|
Posted: Fri Jul 27, 2007 1:24 am Post subject: |
|
| Thanks Jenö, you help is much appreciated |
|
| Back to top |
|
 |
|