.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to solve the error CS0120

1 REPLY 1
Reply
Message 1 of 2
joantopo
421 Views, 1 Reply

How to solve the error CS0120

I have this error:

http://msdn.microsoft.com/es-es/library/s35hcfh7(v=vs.80).aspx

 

the document says that there are two solutions:

-Both methods as "STATIC".

-Create a new instance of the class(object).

 

But  two methods are in the same class.

 

I aproach my project with a zip file, I have indicated two interruption points.

http://www.mediafire.com/?699oitknl61xczt

 

COMMAND: visor

 

 

I want to use. the event "documentActivated". This event is in the class "toolsC3Daplicacion" and it calls the method "callback_documentActivated" that is in the same class.

 

This method call the method called "proces" (second interruption point) but is in other class "TypeViewerControl".

I can´t create a new instance about a object TypeViewerControl because is already opened and when I open or change of active drawing, I want to load  datagrid´s alignments.

The code in the method "proces" do this, but I can´t create a new instance of object. This object is a paletteSet and I always opened it.

 

I need help, please.

 

Thank you.

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
1 REPLY 1
Message 2 of 2
fenton.webb
in reply to: joantopo

Please can you paste the problematic code into the text window here?

 

That way people can refer to it quickly rather than having to download a whole project for which there are missing components that prevent it from being compiled (which is what I found) 😞




Fenton Webb
AutoCAD Engineering
Autodesk

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost