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" <brian@knowdotnet.nospam.com> wrote in message
news:eSqYIKEeEHA.3612@TK2MSFTNGP09.phx.gbl...[color=blue]
> A global setting for this is located under Tools->Options->Projects->VB
> Defaults.
>
> Brian Davis
>
http://www.knowdotnet.com
>
>
>
> "Clark Stevens" <cyberbeat03@hotmail.com> wrote in message
> news:kbePc.82825$yd5.30326@twister.nyroc.rr.com...[color=green]
> > Okay, thanks. That makes sense.
> >
> > When you start a new WinForms project, is there a way to have Option[/color]
> Strict[color=green]
> > automatically set to on by default just like Option Explicit is On by
> > default?
> >
> > "Cor Ligthert" <notfirstname@planet.nl> wrote in message
> > news:Od1tekAeEHA.3916@TK2MSFTNGP11.phx.gbl...[color=darkred]
> > > Clark,
> > >
> > > When you use Option Strict Off you use often late binding. When that[/color]
> > cannot[color=darkred]
> > > 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
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]