windows forms

Could you let me know the simplest correct way to position

a panel control between a toolstrip at the top and a status bar at the bottom,

all three controls held within a parent panel

I have docked the toolstrip as top and status bar as bottom

should I size the panel in the load form and resize form events

is there a more transparrent approach to the problem.




Answer this question

windows forms

  • kabuki

    If the panel appears over the toolstrip then you must change the z-order.

    Right click on the panel and in the context menu you should have 2 options:

    Bring to front

    Send to back

    Try each one until you get the desired position.


  • BPMIlls2001

    Thankyou for your quick reply

    if I set the centre panels dock to fill it fills the parent panel

    overlaying itself ontop of the toolstrip,

    if you are absolutely sure it should not do this I will

    try it again, but I am sure it does.

    I am experimenting with two splitter panels embedded

    one within another and setting various properties

    but I always get a border above the status bar and

    below my centre panel



  • John Moore999

    Thanks

  • Sianoosh

    Mike, thanks for your help

    by setting the splitter properties in the load form event

    I have got something to work

    If you do know of a more elegant solution

    I would like to know of it for the future

    best wishes nick.



  • SlideGuitarist

    Why don't you set the Dock property of the panel to Fill It should work.


  • windows forms