Posted 17 years ago
by Gerard Laslett

ToolWindow.ClientSize not working?
I have a ToolWindow, that is floating (only).
It was created around a fixed sized custom usercontrol.
How do I make the ToolWindow floating dimensions such that it shows the usercontrol completely.
The ClientSize property on the ToolWindow object doesnt seem to work properly.
I would have though writing code like this:would work - but it doesn't
help please.
[Modified at 06/14/2006 02:18 AM]
I have a ToolWindow, that is floating (only).
It was created around a fixed sized custom usercontrol.
How do I make the ToolWindow floating dimensions such that it shows the usercontrol completely.
The ClientSize property on the ToolWindow object doesnt seem to work properly.
I would have though writing code like this:
Control tool = new Tools.NsSumSdTool();
ToolWindow toolWindowSumSD = new ToolWindow(this.DockManager, "tool_SumSD", "SumSD", null, tool);
toolWindowSumSD.State = ToolWindowState.Floating;
toolWindowSumSD.ClientSize = tool.Size
toolWindowSumSD.Activate(true);
help please.
[Modified at 06/14/2006 02:18 AM]