BYTEINSIGHT
GAPVelocity AI Studio helps you move from outdated tech stacks to the latest desktop, web, and cloud platforms—smarter, faster, and with less risk.
Choose a platform to see migration options:
Our comprehensive approach to application modernization, from assessment to production deployment.
Transformation Services
Not Sure Where to Start?
The Visual Basic Upgrade Companion converts VB6 library items (types and members) to .NET equivalents whenever possible. For some VB6 elements there are .NET constructs that work in a very similar way but may differ in their behavior depending on how they are used. The VBUC generates the EWI 2080 for these scenarios.
During the upgrade process, some class members can be mapped to .NET structures with minor behavior differences. If this EWI is displayed in a given project, the selected target structure will keep the functional equivalence of the resulting code but may end up having small differences in some cases that may require some manual fine tuning, such as methods that are called in a different order or text that is displayed in a different font.
Public Function Exists(col As Collection, Index As String) As Boolean Dim o As Variant On Error GoTo Error MsgBox o Error: Exists = o <> Empty End Function
Public Function Exists(ByVal col As OrderedDictionary, ByVal Index As String) As Boolean Dim o As Object Try MessageBox.Show(ReflectionHelper.GetPrimitiveValue(Of String)(o), My.Application.Info.Title) Catch End Try 'UPGRADE_WARNING: (2080) IsEmpty was upgraded to a comparison and has a new behavior. Return Not Object.Equals(o, Nothing) End Function
internal static bool Exists(OrderedDictionary col, string Index) { object o = null; try { MessageBox.Show(ReflectionHelper.GetPrimitiveValue<string>(o), AssemblyHelper.GetTitle(System.Reflection.Assembly.GetExecutingAssembly())); } catch { } //UPGRADE_WARNING: (2080) IsEmpty was upgraded to a comparison and has a new behavior. return !Object.Equals(o, null); }
See another example for VB6 SavePicture command
See another example for VB6 Form_Load event