As far as I know, the DialogBox is meant to be a fixed or user-defined size. You can then resize the controls to fit within it using properties such as Anchor or controls such as one of the layout panels.
A dialogbox is not set up to automatically resize.
I can understand the philosophy behind this.
Say you are running on a 1024 x 768 system. Suddenly the dialog grows to the point that you can no longer access the OK/Cancel buttons because they are off the screen. This could be very disconcerting.
Rather, you can set scrollbars such that the user can see the parts of the form beyond the size of the dialog.
But if you *really* need this feature, you will need to code it yourself.
Hope this helps.
www.insteptech.com ;
msmvps.com/blogs/deborahk
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!