Form.Close() is not working

Class library usage, coding and language questions.
ninjaduck
Posts: 3
Joined: Thu Sep 28, 2006 7:45 pm

Form.Close() is not working

Post by ninjaduck » Thu Sep 28, 2006 8:23 pm

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

ninjaduck
Posts: 3
Joined: Thu Sep 28, 2006 7:45 pm

FindFormClassName Method

Post by ninjaduck » Fri Sep 29, 2006 12:02 am

It looks like FindFormClassName method is the cause. If I change it to FindFormTitle Method it seems to work just fine.

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Fri Sep 29, 2006 10:49 pm

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

ninjaduck
Posts: 3
Joined: Thu Sep 28, 2006 7:45 pm

Post by ninjaduck » Fri Sep 29, 2006 11:02 pm

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.