[Traps in VB.NET]

Traps when switching to VB.NET from classic VB

Saturday, July 14, 2001

VB.NET is rather different from classic VB. Most of the language changes are explicit barriers, meaning you get compile time errors. However, there are some traps you might want to watch out for. Some things are subtly different, and nobody will give you a warning. The following list is for traps only, not for explicit barriers. Also note that the traps listed are only those related to existing features, not to new ones.

What's more, it's about the language only. This means that semantic changes in library routines (even in standard or intrinsic functions), the forms package, or any COM components (ActiveX controls etc.) are not covered by this.

The list is not at all guaranteed to be complete, so there will be other pitfalls. Also, it is intended as a quick-and-dirty, keep-me-handy memo, helping you to keep the most important things in mind. For more details, read the Changes topic.