Resize Workspace on opening a View

Topics: CAB & Smart Client Software Factory
May 17, 2007 at 11:39 AM
Hi,

Is there any way to resize a workspace from a view when this view is opening?

-
Thanks,
Leonid
May 17, 2007 at 3:34 PM

LeonidShirmanov wrote:
Hi,

Is there any way to resize a workspace from a view when this view is opening?

-
Thanks,
Leonid


A View is designed to be shown in any workspace and should not know of how the workspace is to be displayed. The module controller (or whatever module is showing the view in the workspace) would also control the workspace it is showing it in. From there the possibilities are endless. I have typically pinned or docked the workspace to allow user resizing to work properly and then in the View's OnLoad method use code like:
this.Dock = DockStyle.Fill;
base.AutoSize = true;