Smartparts and workspace do not resize in modal window

Topics: CAB & Smart Client Software Factory
Dec 17, 2007 at 8:32 AM

I am trying to show a specific form using the ModalWorkspace through code below:

SamplePageController.ShowPage(WorkItem, "Page Name", WorkItem.WorkspacesGSC.Standard.Infrastructure.Interface.WorkspaceNames.ModalWindows);

And when doing this, I was able to show the said form modally but the smartpartinfo Form inside is not maximized in the CAB Modal Window and does not resize accordingly.

Please help.

Dec 17, 2007 at 2:42 PM

The fastest workaround is to set the SmartPart.Dock property to DockStyle.Fill.

These topics also deal with the same problem. You may find them handy:
Please let me know if this helps.

Ignacio Baumann Fonay
Dec 19, 2007 at 9:28 AM
That did the trick.

Thank you so much.