Do you avoid Microsoft.VisualBasic.Compatibility.dll for Visual Basic.NET projects?

Updated by Brady Stroud [SSW] 1 year ago. See history

123
<introEmbed body={<> This is where you should focus your efforts on eliminating whatever VB6 baggage your programs or developer habits may carry forward into VB.NET. There are better framework options for performing the same functions provided by the compatibility library You should heed this warning from the VS.NET help file: Caution: It is not recommended that you use the VisualBasic.Compatibility namespace for new development in Visual Basic .NET. This namespace may not be supported in future versions of Visual Basic. Use equivalent functions or objects from other .NET namespaces instead.? ad.? </>} />

Avoid:

  • InputBox
  • ControlArray
  • ADO support in Microsoft.VisualBasic.Compatibility.Data
  • Environment functions
  • Font conversions

Acknowledgements

Adam Cogan
Ryan Tee
Related rules

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star