Further to the response below, note that this does not insert Option Strict
into your source code. It simply establishes the default for code modules
where the setting is not explicitly set. The setting can still be overridden
in each code module.
I prefer to explicitly type it at the top of each module (as well as have
the default set), and then there is no danger of having the wrong setting.
HTH
Charles
"Brian Davis" <br***@knowdotnet.nospam.com> wrote in message
news:eS**************@TK2MSFTNGP09.phx.gbl...
A global setting for this is located under Tools->Options->Projects->VB
Defaults.
Brian Davis
http://www.knowdotnet.com
"Clark Stevens" <cy*********@hotmail.com> wrote in message
news:kb*******************@twister.nyroc.rr.com... Okay, thanks. That makes sense.
When you start a new WinForms project, is there a way to have Option
Strict automatically set to on by default just like Option Explicit is On by
default?
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:Od**************@TK2MSFTNGP11.phx.gbl... Clark,
When you use Option Strict Off you use often late binding. When that
cannot be done you get an error.
As well important it is that you can compare
C++ (6) was much faster than VB6
C# is much faster than VBNet with Option Strict Off
C# has the same performance as VBNet with Option Strict On.
Makes that sense?
Cor