Here's the situation... say you've got two dockable forms that are docked on the left-hand side of the screen. One of them is docked right above the other one (stacked). Now, you can take your mouse and put it between the two forms and resize them simply by dragging either up or down... as one get taller the other gets shorter and vice versa. So now, how do you accomplish this through code. For instance, say both of the docked forms have an equal height of 300 and you want to decrease the height of one of them to 100 (which in turn would increase the other one to 500 in height) and you want to accomplish this all from code.
Here are the things that haven't worked:
1. Setting docked form's height property
2. Calling docked form's Move method
3. Attempting to resize the docked form by calling MoveWindow via API
4. Size Window command run against the form
5. Saving various aspects of the docked form's dock state, undocking the form, and then trying to redock exactly where it previously was after resizing it (this would have looked terrible anyways, but I had to try)
Any other ideas?