We had a problem with our code with people using IIf() , where they really should use If .
IIf()
If
Is there a way to override IIf to disable it or make it obsolete using the <Obsolete()> ?
IIf
<Obsolete()>
You can remove Microsoft.VisualBasic dll from project links.
Microsoft.VisualBasic
Then you cannot use the functions of VB6.