|
-
Jan 12th, 2016, 04:09 PM
#1
Thread Starter
Lively Member
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.
-
Jan 12th, 2016, 04:28 PM
#2
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.
-
Jan 12th, 2016, 05:38 PM
#3
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
 
-
Jan 13th, 2016, 09:18 AM
#4
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."
-
Jan 13th, 2016, 01:50 PM
#5
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.
-
Jan 13th, 2016, 03:05 PM
#6
Re: All Controls Inaccessible
 Originally Posted by Sitten Spynne
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|