I have a user control that uses a dockmanager internally to allow docking of one of it's tool windows (only within it's bounds, instead of anywhere on the screen).
This user control is used in two of my forms. In one form, it's toolwindow should be unpinned, in the other it should be pinned.
I wanted to set this at design time and have it work properly, but the only way I could see to set the 'state' of the tool window was through the 'state' property and this doesn't seem to have any effect at design time.
Is there a way I can set this at design time or do I need to do it in the constructor of my form that wants it 'unpinned'. Also, what's the best way to go from unpinned to pinned through code? Is it setting the state property? How do I know which value to set it to in order to 'pin' the item? Doesn't the control when 'pinning' itself decide which way it is docked (internal or external)? How am I supposed to know which way to tell it to dock?
This user control is used in two of my forms. In one form, it's toolwindow should be unpinned, in the other it should be pinned.
I wanted to set this at design time and have it work properly, but the only way I could see to set the 'state' of the tool window was through the 'state' property and this doesn't seem to have any effect at design time.
Is there a way I can set this at design time or do I need to do it in the constructor of my form that wants it 'unpinned'. Also, what's the best way to go from unpinned to pinned through code? Is it setting the state property? How do I know which value to set it to in order to 'pin' the item? Doesn't the control when 'pinning' itself decide which way it is docked (internal or external)? How am I supposed to know which way to tell it to dock?
Kelly Leahy Software Architect Milliman, USA