There is an undocumented option for @DialogBox called [SizeToTable] that
works like the [AutoHorzFit] and [AutoVertFit] options in layout regions
BUT shrinks the dialogbox down to the size of the table on the form or
For it to work you need the formula to look like this:
@DialogBox ("FormName" ; [AutoHorzFit]:[AutoVertFit]:[SizeToTable] ;
Knowledge Impact Consulting Inc.