Page 1 of 1
Ranorex.Control does not exist
Posted: Wed Jun 14, 2017 2:36 pm
by i.vasilyev
Hello.
I want to get cell colour and I found following post:
https://www.ranorex.com/forum/get-backg ... tml#p28331
But I recieved following error: The type or namespace name 'Control' does not exist in the namespace 'Ranorex' (are you missing an assembly reference?)
What I'm doing wrong?
Re: Ranorex.Control does not exist
Posted: Wed Jun 14, 2017 2:39 pm
by Vaughan.Douglas
Can you post a snapshot from the Ranorex Spy (NOT A SCREENSHOT)? This would help immensely.
Re: Ranorex.Control does not exist
Posted: Wed Jun 14, 2017 2:57 pm
by i.vasilyev
Sorry, how is the snapshot related to my question?
Re: Ranorex.Control does not exist
Posted: Wed Jun 14, 2017 3:31 pm
by Vaughan.Douglas
i.vasilyev wrote:Sorry, how is the snapshot related to my question?
This will give us more information about the object you're working with and how Ranorex is identifying it.
Re: Ranorex.Control does not exist
Posted: Wed Jun 14, 2017 3:41 pm
by i.vasilyev
Ranorex version 7.0.1
I'm asking not about some ranorex element or something similar. I'm asking about Control class and how can I get access to it and use InvokeRemotely method?
https://www.ranorex.com/Documentation/R ... ontrol.htm
Re: Ranorex.Control does not exist
Posted: Wed Jun 14, 2017 4:42 pm
by Vaughan.Douglas
When I whip out a basic form with a DGV as described in
the example I get the code snippet to run without a problem.
BG_Color.png
Re: Ranorex.Control does not exist
Posted: Thu Jun 15, 2017 11:37 am
by i.vasilyev
Can you provide your example? With usings please
Re: Ranorex.Control does not exist
Posted: Thu Jun 15, 2017 1:12 pm
by i.vasilyev
Ranorex.Plugin.WinForms was missed. The problem is solved