Windows Application Enhancements

Visual Studio .NET has added a variety of features to VB .NET to make the IDE more powerful and to enhance the functionality of Windows forms. There is improved support for features such as building menus, controls that automatically resize based on the text to display, better anchoring of controls for resized windows, and a much-improved mechanism for setting the tab order.

Resizing Controls Automatically

You can set certain controls to resize automatically based on what they need to display. This is easy to examine with a simple label. Open the Toolbox and add a label to your form. Drag it over to the left side of the form, so that it is not in line with the button.

Now, change some properties of that label. ...

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.