Page 1 of 1

Form.Close() is not working

Posted: Thu Sep 28, 2006 8:23 pm
by ninjaduck
Somehow the Close() method in Form class is not working for me. It is even happenning to RanorexVS2005Sample1.exe from the bin directory of Ranorex. It is not able to close the calculator at the end. I re-compiled the solution for RanorexVS2005Sample1 but still is unable to close the calculator when it is done running. Any suggestions?

Ranorex: v0.9.3
System: Windows XP Pro SP 2
Framework installed: .net 1.1 and 2.0
Developing Environment: VS2005 v8.0

FindFormClassName Method

Posted: Fri Sep 29, 2006 12:02 am
by ninjaduck
It looks like FindFormClassName method is the cause. If I change it to FindFormTitle Method it seems to work just fine.

Posted: Fri Sep 29, 2006 10:49 pm
by webops
I cannot reproduce this bug, can you send me a sample application please?

RanorexVS2005Sample1.exe doesn't close the form, if you use the Standard mode of the calculator and not the Scientific mode. It's a little bug in the sample, but it works in Scientific mode.
Can you try Application.Close() also please.

Jenö Herget
Ranorex Team

Posted: Fri Sep 29, 2006 11:02 pm
by ninjaduck
Oh I get it. That makes sence. :) Thanks for the explanation.

Yes, Application.Close() works just fine.

Thank you for developing Ranorex and a quick reply on such a minor issue. I have been using Ranorex in the last few days and I am amazed by what it can do.