简体   繁体   中英

C# code shows error in visual studio 2015 but not 2013

I've got ac# project that was coded in Visual Studio 2010. The code runs without any errors. If I open the project in Visual Studio 2015 (Community Edition) it shows error any idea.

UpdateControls(false);
UpdateControls(true);

Project code in age:

在此处输入图片说明

As your error message explicitly states :

The name 'UpdateControls' does not exist in the current context.

If you manually performed this migration, it's likely that you simply neglected to copy over your UpdateControls() method. You should consider double-checking through your updated Project to see if it is actually missing.

If it is included within the project, then ensure that it has the proper access modifiers and it is able to be accessed (ie in the proper namespace, etc.).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM