Code Protection and Obfuscator For .Net, Licensing And Copy Protection for .Net, ActiveX and MFC

Add automatic sizing and resolution independence to a form with ShellObjects.Net Resizer component


Introduction

Designing resolution independent forms whose child controls resize automatically when the form is resized is a pretty involved task. The Resizer component from ShellObjects makes adding this functionality to all your forms a breeze.

Resizer Basics

To add automatic sizing and resolution independence to your form, simply add the Resizer component to your form by selecting it from the Toolbox and double-clicking on your form at design time. A new Resizer component is added to the form with the HostControl property set to the form. That is all is needed. Whenever the form is resized either programmatically or by the user, and whenever the display resolution changes, all the child controls of the form are automatically resized accordingly.

Advanced functionality

It is very easy to control resizing behavior of individual controls at design-time. For example, it may be necessary to leave the control unresized, or resize only the height/width of the control, or leave the font size of the control unresized. This can be easily done using the rich design-time features of the Resizer component. To change the resize settings of a control, select that control and change the 'ResizerSettings' property of the control.

For even more control, the 'ControlResize' event can be handled. This event is raised every time a control is about to be resized. You can modify the resize settings in the event handler to change how that control will be resized.

Saving size and position of the form automatically.

To automatically save/load the size and position of the host form when the form loads/unloads, set the 'HostFormSettings' property to 'SaveSize' and 'SavePosition'.

Adding resolution independence to the form.

To automatically resize the form when the display resolution changes, set the 'HostFormSettings' property to 'ResizeOnResolutionChange'.

Conclusion

The Resizer component makes it very easy to add resolution-independence and automatic resizing to your forms. The comprehensive design-time support and advanced features and functionality enables customization of the resizing behavior as required.

More Info -- Download -- Buy
Have a question? Email us.