Results 1 to 6 of 6

Thread: All Controls Inaccessible

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2012
    Posts
    70

    All Controls Inaccessible

    I'm not sure if this was the correct forum to post in, please let me know and I will fix this.

    I recently upgraded to Visual Studio 2015 from Visual Studio 2013. I quickly noticed that IntelliSense was not showing me any methods from certain classes, nor any controls on other forms. I did not have this issue in 2013.

    I created a new project, and setup a few forms with methods. I can view the methods from other forms, but not any controls on them with visual studio reporting that, for example:

    Code:
    TestProject.TestForm.Button1 is not accessible in this context because it is 'Private'.
    I have never had this before, the form is declared Public and within the same project. I am having this issue with every project I try to open or create, and have never had this issue in 2013. Is there a setting I have to change to fix this?

    Also, indentation seems to be messed up in 2015 as well, the editor isn't properly formatting snippets and inserting the proper amount of tabs.

  2. #2
    You don't want to know.
    Join Date
    Aug 2010
    Posts
    4,578

    Re: All Controls Inaccessible

    All of those symptoms together sound suspiciously like a corrupt installation of some sort. The best I can suggest is attempting to uninstall, then reinstall.
    This answer is wrong. You should be using TableAdapter and Dictionaries instead.

  3. #3
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,102

    Re: All Controls Inaccessible

    Yeah, it sounds like you have a bad install. Those problems don't even appear to be related to each other, but all seem to be due to either layout errors or some internal bookkeeping mistakes. Both of those together sounds like a bad install.
    My usual boring signature: Nothing

  4. #4
    PowerPoster SJWhiteley's Avatar
    Join Date
    Feb 2009
    Location
    South of the Mason-Dixon Line
    Posts
    2,256

    Re: All Controls Inaccessible

    Is it possible that VS2015 actually, now, marks controls as private? (which personally I think it should have done originally). As far as the tabs, what are you expecting and what are you getting? Maybe the default is different from what you previously had configured?

    Just a couple of ideas to try and avoid a reinstall...
    "Ok, my response to that is pending a Google search" - Bucky Katt.
    "There are two types of people in the world: Those who can extrapolate from incomplete data sets." - Unk.
    "Before you can 'think outside the box' you need to understand where the box is."

  5. #5
    You don't want to know.
    Join Date
    Aug 2010
    Posts
    4,578

    Re: All Controls Inaccessible

    I tested that, SJW, and agree it would be a more sensible default, but it's still Friend, and still encouraging people to get in difficult situations.
    This answer is wrong. You should be using TableAdapter and Dictionaries instead.

  6. #6
    PowerPoster SJWhiteley's Avatar
    Join Date
    Feb 2009
    Location
    South of the Mason-Dixon Line
    Posts
    2,256

    Re: All Controls Inaccessible

    Quote Originally Posted by Sitten Spynne View Post
    I tested that, SJW, and agree it would be a more sensible default, but it's still Friend, and still encouraging people to get in difficult situations.
    Ah well, so much for that idea...
    "Ok, my response to that is pending a Google search" - Bucky Katt.
    "There are two types of people in the world: Those who can extrapolate from incomplete data sets." - Unk.
    "Before you can 'think outside the box' you need to understand where the box is."

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width