Docking Problems

rbulph

Junior Contributor
Joined
Feb 17, 2003
Messages
397
I have a simple form with a toolbar and a PrintPreview Control. When I add the PrintPreviewControl at design time and set the Dock to Fill, it fills the space available nicely. But I want to add the control at run time, because that seems to be the only way to refresh the PrintDocument that it contains without reloading the form. However when I do this and set the Dock to Fill, the PrintPreview control extends up underneath the toolbar so is partly obscured. How can I fix this?
 
Call the SendToBack() method of the toolbar. The order in which the docking of controls is processed depends on their z-order.
 
Back
Top