variable is not declared it may be inaccessible due to its protection level

后端 未结 7 895
刺人心
刺人心 2020-12-10 13:09

My VB skills are not the best, and this problem has had me stumped for a few days.

In the list of controls shown in Visual Studio that are not defined in the code be

7条回答
  •  甜味超标
    2020-12-10 13:58

    I have found that you have to comment out the namespace wrapping the the class at time when moving between version of Visual Studio:

    'Namespace FormsAuth

    'End Namespace

    and at other times, I have to uncomment the namespace.

    This happened to me several times when other developers edited the same solution using a different version of VS and/or I moved (copied) the solution to another location

提交回复
热议问题