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

Last updated by Brady Stroud [SSW] over 1 year ago.See history

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
We open source. Powered by GitHub