MXL Magazine Online
HOMELATEST ISSUEARTICLESBINARY BINGEJAVA JNUKYGUI LABLINKSSHOPABOUT CONTACT  
Home > Issue 009 > Coding Showdown > VB.net presents docking

VB.net presents docking

Requirements: Microsoft Visual Studio .net

A major coding problem with Visual Basic was that you had to write a resize code for most of the elements in your application. Every time the user resized the window, some code had to kick in to make sure everything was still on the application and the right size. This added much extra code to do and made it even harder when you had optionally visible elements which also changed the size of elements.

Luckily however the problem has finally been solved, thanks to a new feature in Visual Studio .net this code is no longer required for most of the time. The property which is of help is called docking. Its new to Visual Basic although I am not sure where Borland Delphi have had the feature for a while or not.

Once you have your element on the pafe you can select the docking property and it will automatically resize to fill the application, to the applications width or any other option which you set. Thats about it really.