Hi Raphael,
I'm glad that we could help.
Jon, Programming without being able to test is almost impossible! Thanks for your help. Just for your info, your mdl function required a custom variable type (x & y values) and that is used for the following;
ByRef newGlobalOriginP As LPoint2d
ByRef newContentExtentP As LPoint2d
which overrides the origin and the extent (size). So simply using the mdl function, it resized the window. Raphael is able to use a maximize command, so I guess in this case the resizing does not matter.
Thanks again Jon,
--Robert