The variable 'variable_name' is either undeclared or was never assigned

前端 未结 16 988
甜味超标
甜味超标 2020-12-15 03:14

I have a question related to the error on the title. Im working with c# and Visual Studio 2010.

I have a form declared as \"public class FormularioGeneral : Form\",

16条回答
  •  别那么骄傲
    2020-12-15 03:41

    I have had the same problem and I fixed it. Actually Visual Studio only works with X86 controls and you can't create a user control in X64 mode and use it.

    You should add a new class library in Any CPU mode and build the class library. then you can add its DLL in your project. Done.

    If it doesn't you must go to the Configuration manager and set the Active solution platform to X64 also do that for all subprojects. Remember that build option has to be checked. and go to the properties of the class library and click on the build tab. then set the platform target to Any CPU.

提交回复
热议问题