ComboBox.Select() is pressing enter after selection

Class library usage, coding and language questions.
buzzstop03
Posts: 4
Joined: Wed Apr 04, 2007 6:44 pm

ComboBox.Select() is pressing enter after selection

Post by buzzstop03 » Wed Apr 04, 2007 6:57 pm

Hi,

When I tried to select any item from a combobox..Ranorex is inherently pressing {enter}. This is causing problems because..when we have some buttons somewhere else on the form, the button gets clicked (the default action on forms when enter is preseed is to click the button on that form). Is it possible for the Combobox.select() method not do a {Enter}.

Thanks
Kittoo

webops
Site Admin
Site Admin
Posts: 349
Joined: Wed Jul 05, 2006 7:44 pm

Post by webops » Thu Apr 05, 2007 2:23 pm

Is it possible for the Combobox.select() method not do a {Enter}.

Yes, please do the following:


1. Generate a textfile with the name Ranorex.ini
2. Insert the text:

[General]
ComboSelectWithEnter=0

3. Copy the file into the Ranorex Bin directory (RanorexCore.dll must be in the same directory).

ComboBox.Select will not send an Enter.

Jenö
Ranorex Team

buzzstop03
Posts: 4
Joined: Wed Apr 04, 2007 6:44 pm

Post by buzzstop03 » Tue Apr 10, 2007 10:12 pm

I tried the solution. It did not work. ComboBox is still doiing {ENTER}. I created the file and kept it in the same folder as RanorexCore.dll as well as other bins. Is there any other way out?

Thanks

webops
Site Admin
Site Admin
Posts: 349
Joined: Wed Jul 05, 2006 7:44 pm

Post by webops » Wed Apr 11, 2007 6:48 pm

I tried it again and it worked for me.
Please check the following:

1. Ranorex.ini must be in the same directory as the executable
2. It works only in V1.1.0

We will not send an Enter (default) in the next version.
Please inform us if it does not work, we can send you a new Dll without Enter.

Jenö
Ranorex Team

buzzstop03
Posts: 4
Joined: Wed Apr 04, 2007 6:44 pm

Post by buzzstop03 » Wed Apr 11, 2007 7:50 pm

yes it is working. Thank you very much. You guys rock!!! Previously I am using a different version of Ranorex.