Upgrading a More Complex Example

In the previous example, you might have noticed that you placed intrinsic VB6 controls on the form, such as the button, the text box, and the list box. VB .NET changes these controls to their VB .NET equivalents. For example, if you clicked on the button in the upgraded application and looked at the Properties window, you would see that it is listed as an object of type System.Windows.Forms.Button. VB .NET attempts to update your VB6 controls to the new WinForms controls in .NET, but you know this is not always possible. For example, as you learned in Chapter 3, “Major VB .NET Changes,” the line and shape controls are gone. In addition, what if you wanted to use some ActiveX controls that did not have corresponding ...

Get A Programmer's Introduction to Visual Basic® .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.