Ranorex.Control does not exist

Class library usage, coding and language questions.
i.vasilyev
Posts: 30
Joined: Fri Sep 09, 2016 10:14 am

Ranorex.Control does not exist

Post by i.vasilyev » Wed Jun 14, 2017 2:36 pm

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?

Vaughan.Douglas
Posts: 250
Joined: Tue Mar 24, 2015 5:05 pm
Location: Des Moines, Iowa, USA

Re: Ranorex.Control does not exist

Post by Vaughan.Douglas » Wed Jun 14, 2017 2:39 pm

Can you post a snapshot from the Ranorex Spy (NOT A SCREENSHOT)? This would help immensely.
Doug Vaughan

i.vasilyev
Posts: 30
Joined: Fri Sep 09, 2016 10:14 am

Re: Ranorex.Control does not exist

Post by i.vasilyev » Wed Jun 14, 2017 2:57 pm

Sorry, how is the snapshot related to my question?

Vaughan.Douglas
Posts: 250
Joined: Tue Mar 24, 2015 5:05 pm
Location: Des Moines, Iowa, USA

Re: Ranorex.Control does not exist

Post by Vaughan.Douglas » Wed Jun 14, 2017 3:31 pm

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.
Doug Vaughan

i.vasilyev
Posts: 30
Joined: Fri Sep 09, 2016 10:14 am

Re: Ranorex.Control does not exist

Post by i.vasilyev » Wed Jun 14, 2017 3:41 pm

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

Vaughan.Douglas
Posts: 250
Joined: Tue Mar 24, 2015 5:05 pm
Location: Des Moines, Iowa, USA

Re: Ranorex.Control does not exist

Post by Vaughan.Douglas » Wed Jun 14, 2017 4:42 pm

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
BG_Color.png (26.42 KiB) Viewed 854 times
Doug Vaughan

i.vasilyev
Posts: 30
Joined: Fri Sep 09, 2016 10:14 am

Re: Ranorex.Control does not exist

Post by i.vasilyev » Thu Jun 15, 2017 11:37 am

Can you provide your example? With usings please

i.vasilyev
Posts: 30
Joined: Fri Sep 09, 2016 10:14 am

Re: Ranorex.Control does not exist

Post by i.vasilyev » Thu Jun 15, 2017 1:12 pm

Ranorex.Plugin.WinForms was missed. The problem is solved