Ranorex

Missing GetFocus() method

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet
View previous topic :: View next topic  
Author Message
Gryphyn



Joined: 07 Dec 2006
Posts: 15

PostPosted: 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.
Crying or Very sad

Cheers
Gryphyn
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: 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
View user's profile Send private message Visit poster's website
Gryphyn



Joined: 07 Dec 2006
Posts: 15

PostPosted: 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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum