| View previous topic :: View next topic |
| Author |
Message |
Gryphyn
Joined: 07 Dec 2006 Posts: 15
|
Posted: Wed Jun 27, 2007 12:03 am Post subject: Missing GetFocus() method |
|
Ranorex 1.2
.Net 2.0
I've just upgraded to Ranorex 1.2
When I go to recompile I get an error for every instance of
"Control <control> = <Form>.GetFocus()"
Investigation shows that this method is missing from the latest release.
Cheers
Gryphyn |
|
| Back to top |
|
 |
admin Site Admin
Joined: 05 Jul 2006 Posts: 351
|
Posted: Wed Jun 27, 2007 10:48 pm Post subject: |
|
| Quote: |
| Investigation shows that this method is missing from the latest release. |
I tried the following code with the VS2005Application.exe and it worked for me:
Code: click into code to enlarge
for (int i = 0; i < 60; i++)
{
Control control = Form.GetFocus();
Console.WriteLine("Control = {0}", control.GetType());
Application.Sleep(1000);
}
GetFocus is a static method, please use Form.GetFocus() and not an instance object.
Jenö
Ranorex Team |
|
| Back to top |
|
 |
Gryphyn
Joined: 07 Dec 2006 Posts: 15
|
Posted: Thu Jun 28, 2007 1:39 am Post subject: |
|
| [url=http://www.ranorex.com/forum/missing-getfocus()-method-t211.html# 601]see bug report post[/url] |
|
| Back to top |
|
 |
|