onFormSize
Event fired whenever the parent form of a Grid or PaintBox object is resized.
Parameters
none
Property of
Grid, PaintBox
Description
The onFormSize event fires whenever the parent form of a Grid or PaintBox object is resized, restored, or maximized. This lets you reposition or resize the object based on the form’s new size. For example, you could use onFormSize to implement behavior similar to the anchor property, keeping the bottom of a PaintBox object positioned at the bottom of the form.
For PaintBox objects, the onFormSize event is similar to onPaint. However, the onPaint event is triggered when the parent form is opened, or items covering the PaintBox object are moved away.