Posted 19 years ago
by Gerard Laslett
![Avatar](https://secure.gravatar.com/avatar/0ea76ae4973877ebd2fa4027cf0dba5d.jpg?s=64&d=identicon&r=g)
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]