Cannot turn option strict OFF...any guesses would be appreciated.

Okay...not sure there will be a solution to this other than something weird happened with the files for this app, but here goes.

After installing .Net 2005, I went and changed different things to set the environment up like I like, one of which is to turn option strict ON.  I was recently working on an app and everything seemed fine.  Well, I stopped for a little to work on a different app and I copied some of the code over from the previous app because I was doing a lot of similar things...just different variable names and such.  

Anyway, some of the code that worked fine in the first app, gave me option strict errors in my new app.  I checked to make sure that option strict was on and it was and still is.  So, I wanted to try turning it off and then back on, but I can't.  I can go to Tools>options and change it to off, but the errors remain.  I also tried going into Application.Designer and tried to change it there, but that doesn't work either.

Maybe when a new app is started, if option strict is ON, then it is on for the life of the app?  I can get around it, but I am having to do things that I didn't have to do in the previous app, just to get what is essentially the same code to work.

Any thoughts?
LVL 12
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


The Tools Options is the defaults for new projects. Right click your project and select properties to change settings for your current project. Or add a line at the top of your code files:
Option Strict Off
Project Properties - Then in the Compile sectino you will find Option strict et.c

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
As vb_jonas said, sounds like you've changed it for the project you were working on, but you want to change the default. Tools->Options->Projects and Solutions->VB Defaults is where you want to look.
rgn2121Author Commented:
Okay...I will look at it when I get back to work...I will let you know what I find.

Thanks for the quick responses.
rgn2121Author Commented:
First off thanks for the help.  I think I know what happened.  I didn't realize that the tools>Options only changed it for new projects and since I started the other project before going to option strict ON, the project was still set to off.  So, when I started the new project, it took my settings of option strict ON.

Thanks for the help guys...Learn something new everday.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.